Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Protected Attributes | |
$_countSelect | |
$searchCriteria | |
![]() | |
$entitySnapshot | |
![]() | |
$_model | |
$_resourceModel | |
$_resource | |
$_fieldsToSelect = null | |
$_initialFieldsToSelect = null | |
$_fieldsToSelectChanged = false | |
$_joinedTables = [] | |
$_mainTable = null | |
$_resetItemsDataChanged = false | |
$_eventPrefix = '' | |
$_eventObject = '' | |
$_eventManager = null | |
![]() | |
$_conn | |
$_select | |
$_idFieldName | |
$_bindParams = [] | |
$_data = null | |
$_map = null | |
$_fetchStmt = null | |
$_isOrdersRendered = false | |
$_logger | |
$extensionAttributesJoinProcessor | |
![]() | |
$_items = [] | |
$_itemObjectClass = \Magento\Framework\DataObject::class | |
$_orders = [] | |
$_filters = [] | |
$_isFiltersRendered = false | |
$_curPage = 1 | |
$_pageSize = false | |
$_totalRecords | |
$_isCollectionLoaded | |
$_flags = [] | |
$_entityFactory | |
Additional Inherited Members | |
![]() | |
const | SORT_ORDER_ASC = 'ASC' |
const | SORT_ORDER_DESC = 'DESC' |
Flat sales abstract collection
@api @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 15 of file AbstractCollection.php.
|
protected |
Check if $attribute is \Magento\Eav\Model\Entity\Attribute and convert to string field name
string | \Magento\Eav\Model\Entity\Attribute | $attribute |
Definition at line 59 of file AbstractCollection.php.
|
protected |
Create all ids retrieving select with limitation Backward compatibility with EAV collection
int | $limit | |
int | $offset |
Definition at line 136 of file AbstractCollection.php.
addAttributeToFilter | ( | $attribute, | |
$condition = null |
|||
) |
Specify collection select filter by attribute value Backward compatibility with EAV collection
string | \Magento\Eav\Model\Entity\Attribute | $attribute | |
array | int | string | null | $condition |
Definition at line 94 of file AbstractCollection.php.
addAttributeToSelect | ( | $attribute | ) |
Add attribute to select result set. Backward compatibility with EAV collection
string | $attribute |
Definition at line 80 of file AbstractCollection.php.
addAttributeToSort | ( | $attribute, | |
$dir = 'asc' |
|||
) |
Specify collection select order by attribute value Backward compatibility with EAV collection
string | $attribute | |
string | $dir |
Definition at line 108 of file AbstractCollection.php.
getAllIds | ( | $limit = null , |
|
$offset = null |
|||
) |
Retrieve all ids for collection Backward compatibility with EAV collection
int | $limit | |
int | $offset |
Definition at line 156 of file AbstractCollection.php.
getSearchCriteria | ( | ) |
Get search criteria.
Definition at line 166 of file AbstractCollection.php.
getSelectCountSql | ( | ) |
get select count sql
Definition at line 44 of file AbstractCollection.php.
getTotalCount | ( | ) |
setItems | ( | array | $items = null | ) |
Set items list.
Definition at line 212 of file AbstractCollection.php.
setPage | ( | $pageNum, | |
$pageSize | |||
) |
Set collection page start and records to show Backward compatibility with EAV collection
int | $pageNum | |
int | $pageSize |
Definition at line 122 of file AbstractCollection.php.
setSearchCriteria | ( | \Magento\Framework\Api\SearchCriteriaInterface | $searchCriteria = null | ) |
Set search criteria.
\Magento\Framework\Api\SearchCriteriaInterface | $searchCriteria |
Definition at line 178 of file AbstractCollection.php.
setSelectCountSql | ( | \Magento\Framework\DB\Select | $countSelect | ) |
Set select count sql
\Magento\Framework\DB\Select | $countSelect |
Definition at line 33 of file AbstractCollection.php.
setTotalCount | ( | $totalCount | ) |
Set total count.
int | $totalCount |
Definition at line 201 of file AbstractCollection.php.
|
protected |
Definition at line 20 of file AbstractCollection.php.
|
protected |
Definition at line 25 of file AbstractCollection.php.