|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Framework\DB\Select $select, \Magento\Framework\Api\CriteriaInterface $criteria, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy) | |
| getCriteria () | |
| getAllIds () | |
| addBindParam ($name, $value) | |
| getSize () | |
| getSelectSql ($stringMode=false) | |
| reset () | |
| fetchAll () | |
| fetchItem () | |
| getIdFieldName () | |
| getConnection () | |
| getResource () | |
| addCountSqlSkipPart ($name, $toSkip=true) | |
Protected Member Functions | |
| getSelectCountSql () | |
| getCountSqlSkipParts () | |
| getSelect () | |
Protected Attributes | |
| $select | |
| $criteria | |
| $resource | |
| $fetchStmt = null | |
| $logger | |
| $bindParams = [] | |
| $totalRecords | |
| $data | |
| $countSqlSkipParts | |
| __construct | ( | \Magento\Framework\DB\Select | $select, |
| \Magento\Framework\Api\CriteriaInterface | $criteria, | ||
| \Magento\Framework\Model\ResourceModel\Db\AbstractDb | $resource, | ||
| \Magento\Framework\Data\Collection\Db\FetchStrategyInterface | $fetchStrategy | ||
| ) |
| addBindParam | ( | $name, | |
| $value | |||
| ) |
Add variable to bind list
| string | $name | |
| mixed | $value |
Implements QueryInterface.
Definition at line 129 of file Query.php.
| addCountSqlSkipPart | ( | $name, | |
$toSkip = true |
|||
| ) |
Add Select Part to skip from count query
| string | $name | |
| bool | $toSkip |
Implements QueryInterface.
Definition at line 241 of file Query.php.
| fetchAll | ( | ) |
Fetch all statement
Implements QueryInterface.
Definition at line 178 of file Query.php.
| fetchItem | ( | ) |
| getAllIds | ( | ) |
Retrieve all ids for query
Implements QueryInterface.
Definition at line 111 of file Query.php.
| getConnection | ( | ) |
Retrieve connection object
Implements QueryInterface.
Definition at line 219 of file Query.php.
|
protected |
| getCriteria | ( | ) |
Retrieve source Criteria object
Implements QueryInterface.
Definition at line 101 of file Query.php.
| getIdFieldName | ( | ) |
Get Identity Field Name
Implements QueryInterface.
Definition at line 209 of file Query.php.
| getResource | ( | ) |
Get resource instance
Implements QueryInterface.
Definition at line 229 of file Query.php.
|
protected |
|
protected |
| getSelectSql | ( | $stringMode = false | ) |
Get sql select string or object
| bool | $stringMode |
Implements QueryInterface.
Definition at line 154 of file Query.php.
| getSize | ( | ) |
| reset | ( | ) |
|
protected |