Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Protected Attributes | |
$_eventPrefix = 'store_collection' | |
$_eventObject = 'store_collection' | |
![]() | |
$_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' |
|
protected |
Define resource model
Definition at line 35 of file Collection.php.
addCategoryFilter | ( | $category | ) |
Add root category id filter to store collection
int | array | $category |
Definition at line 127 of file Collection.php.
addGroupFilter | ( | $groupId | ) |
Add filter by group id. Group id can be passed as one single value or array of values.
int | array | $groupId |
Definition at line 82 of file Collection.php.
addIdFilter | ( | $store | ) |
Add store id(s) filter to collection
int | array | $store |
Definition at line 105 of file Collection.php.
addRootCategoryIdAttribute | ( | ) |
Add store root category data to collection
Definition at line 202 of file Collection.php.
addStatusFilter | ( | $status | ) |
Add filter by status to collection
int | $status |
Definition at line 94 of file Collection.php.
addWebsiteFilter | ( | $website | ) |
Add filter by website to collection
int | array | $website |
Definition at line 116 of file Collection.php.
getLoadDefault | ( | ) |
Is load default (admin) store
Definition at line 59 of file Collection.php.
Load collection data
bool | $printQuery | |
bool | $logQuery |
Definition at line 162 of file Collection.php.
loadByCategoryIds | ( | array | $categories | ) |
Add root category id filter to store collection
array | $categories |
Definition at line 189 of file Collection.php.
setLoadDefault | ( | $loadDefault | ) |
Set flag for load default (admin) store
bool | $loadDefault |
Definition at line 47 of file Collection.php.
setWithoutDefaultFilter | ( | ) |
Add disable default store filter to collection
Definition at line 69 of file Collection.php.
toOptionArray | ( | ) |
Convert items array to array for select options
Implements OptionSourceInterface.
Definition at line 140 of file Collection.php.
toOptionHash | ( | ) |
Convert items array to hash for select options
Definition at line 150 of file Collection.php.
|
protected |
Definition at line 28 of file Collection.php.
|
protected |
Definition at line 21 of file Collection.php.