Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Protected Attributes | |
$_product | |
$_linkModel | |
$_linkTypeId | |
![]() | |
$_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 |
Resource initialization
Definition at line 43 of file Collection.php.
addLinkTypeIdFilter | ( | ) |
Add link's type to filter
Definition at line 103 of file Collection.php.
addProductIdFilter | ( | ) |
Add product to filter
Definition at line 116 of file Collection.php.
getLinkModel | ( | ) |
Retrieve collection link model
Definition at line 71 of file Collection.php.
getProduct | ( | ) |
Retrieve collection base product object
Definition at line 93 of file Collection.php.
joinAttributes | ( | ) |
Join attributes
Definition at line 129 of file Collection.php.
setLinkModel | ( | \Magento\Catalog\Model\Product\Link | $linkModel | ) |
Declare link model and initialize type attributes join
\Magento\Catalog\Model\Product\Link | $linkModel |
Definition at line 57 of file Collection.php.
setProduct | ( | \Magento\Catalog\Model\Product | $product | ) |
Initialize collection parent product and add limitation join
\Magento\Catalog\Model\Product | $product |
Definition at line 82 of file Collection.php.
|
protected |
Definition at line 29 of file Collection.php.
|
protected |
Definition at line 36 of file Collection.php.
|
protected |
Definition at line 22 of file Collection.php.