|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (\Magento\Framework\App\CacheInterface $cache, \Magento\Eav\Model\Entity\TypeFactory $entityTypeFactory, \Magento\Eav\Model\ResourceModel\Entity\Type\CollectionFactory $entityTypeCollectionFactory, \Magento\Framework\App\Cache\StateInterface $cacheState, \Magento\Framework\Validator\UniversalFactory $universalFactory, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Catalog\Model\ResourceModel\ConfigFactory $configFactory, \Magento\Catalog\Model\Product\TypeFactory $productTypeFactory, \Magento\Eav\Model\ResourceModel\Entity\Attribute\Group\CollectionFactory $groupCollectionFactory, \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory $setCollectionFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Eav\Model\Config $eavConfig, SerializerInterface $serializer=null) | |
| setStoreId ($storeId) | |
| getStoreId () | |
| loadAttributeSets () | |
| getAttributeSetName ($entityTypeId, $id) | |
| getAttributeSetId ($entityTypeId, $name=null) | |
| loadAttributeGroups () | |
| getAttributeGroupName ($attributeSetId, $id) | |
| getAttributeGroupId ($attributeSetId, $name) | |
| loadProductTypes () | |
| getProductTypeId ($name) | |
| getProductTypeName ($id) | |
| getSourceOptionId ($source, $value) | |
| getProductAttributes () | |
| getAttributesUsedInProductListing () | |
| getAttributesUsedForSortBy () | |
| getAttributeUsedForSortByArray () | |
| getProductListDefaultSortBy ($store=null) | |
Public Member Functions inherited from Config | |
| __construct (\Magento\Framework\App\CacheInterface $cache, \Magento\Eav\Model\Entity\TypeFactory $entityTypeFactory, \Magento\Eav\Model\ResourceModel\Entity\Type\CollectionFactory $entityTypeCollectionFactory, \Magento\Framework\App\Cache\StateInterface $cacheState, \Magento\Framework\Validator\UniversalFactory $universalFactory, SerializerInterface $serializer=null) | |
| getCache () | |
| clear () | |
| isCacheEnabled () | |
| getEntityType ($code) | |
| getAttributes ($entityType) | |
| getAttribute ($entityType, $code) | |
| getEntityAttributeCodes ($entityType, $object=null) | |
| getEntityAttributes ($entityType, $object=null) | |
| importAttributesData ($entityType, array $attributes) | |
Data Fields | |
| const | XML_PATH_LIST_DEFAULT_SORT_BY = 'catalog/frontend/default_sort_by' |
Data Fields inherited from Config | |
| const | ENTITIES_CACHE_ID = 'EAV_ENTITY_TYPES' |
| const | ATTRIBUTES_CACHE_ID = 'EAV_ENTITY_ATTRIBUTES' |
| const | ATTRIBUTES_CODES_CACHE_ID = 'EAV_ENTITY_ATTRIBUTES_CODES' |
Protected Member Functions | |
| _construct () | |
| _getResource () | |
Protected Member Functions inherited from Config | |
| _load ($id) | |
| _save ($obj, $id) | |
| _addEntityTypeReference ($id, $code) | |
| _getEntityTypeReference ($id) | |
| _addAttributeReference ($id, $code, $entityTypeCode) | |
| _getAttributeReference ($id, $entityTypeCode) | |
| _getEntityKey ($code) | |
| _getAttributeKey ($entityTypeCode, $attributeCode) | |
| _initEntityTypes () | |
| _initAttributes ($entityType) | |
| _validateAttributeData ($attributeData=null) | |
@SuppressWarnings(PHPMD.LongVariable) @SuppressWarnings(PHPMD.TooManyFields) @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 16 of file Config.php.
| __construct | ( | \Magento\Framework\App\CacheInterface | $cache, |
| \Magento\Eav\Model\Entity\TypeFactory | $entityTypeFactory, | ||
| \Magento\Eav\Model\ResourceModel\Entity\Type\CollectionFactory | $entityTypeCollectionFactory, | ||
| \Magento\Framework\App\Cache\StateInterface | $cacheState, | ||
| \Magento\Framework\Validator\UniversalFactory | $universalFactory, | ||
| \Magento\Framework\App\Config\ScopeConfigInterface | $scopeConfig, | ||
| \Magento\Catalog\Model\ResourceModel\ConfigFactory | $configFactory, | ||
| \Magento\Catalog\Model\Product\TypeFactory | $productTypeFactory, | ||
| \Magento\Eav\Model\ResourceModel\Entity\Attribute\Group\CollectionFactory | $groupCollectionFactory, | ||
| \Magento\Eav\Model\ResourceModel\Entity\Attribute\Set\CollectionFactory | $setCollectionFactory, | ||
| \Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
| \Magento\Eav\Model\Config | $eavConfig, | ||
| SerializerInterface | $serializer = null |
||
| ) |
Constructor
| \Magento\Framework\App\CacheInterface | $cache | |
| \Magento\Eav\Model\Entity\TypeFactory | $entityTypeFactory | |
| \Magento\Eav\Model\ResourceModel\Entity\Type\CollectionFactory | $entityTypeCollectionFactory |
Definition at line 139 of file Config.php.
|
protected |
|
protected |
Retrieve resource model
Definition at line 420 of file Config.php.
| getAttributeGroupId | ( | $attributeSetId, | |
| $name | |||
| ) |
| float | int | string | $attributeSetId | |
| string | $name |
Definition at line 318 of file Config.php.
| getAttributeGroupName | ( | $attributeSetId, | |
| $id | |||
| ) |
| float | int | string | $attributeSetId | |
| float | int | string | $id |
Definition at line 297 of file Config.php.
| getAttributeSetId | ( | $entityTypeId, | |
$name = null |
|||
| ) |
| string | int | float | $entityTypeId | |
| string | null | $name |
Definition at line 254 of file Config.php.
| getAttributeSetName | ( | $entityTypeId, | |
| $id | |||
| ) |
| string | int | float | $entityTypeId | |
| float | int | $id |
Definition at line 234 of file Config.php.
| getAttributesUsedForSortBy | ( | ) |
Retrieve Attributes array used for sort by
Definition at line 453 of file Config.php.
| getAttributesUsedInProductListing | ( | ) |
Retrieve Attributes used in product listing
Definition at line 430 of file Config.php.
| getAttributeUsedForSortByArray | ( | ) |
Retrieve Attributes Used for Sort by as array key = code, value = name
Definition at line 474 of file Config.php.
| getProductAttributes | ( | ) |
Load Product attributes
Definition at line 407 of file Config.php.
| getProductListDefaultSortBy | ( | $store = null | ) |
Retrieve Product List Default Sort By
| mixed | $store |
Definition at line 491 of file Config.php.
| getProductTypeId | ( | $name | ) |
| getProductTypeName | ( | $id | ) |
| getSourceOptionId | ( | $source, | |
| $value | |||
| ) |
| \Magento\Framework\DataObject | $source | |
| string | $value |
Definition at line 392 of file Config.php.
| getStoreId | ( | ) |
Return store id, if is not set return current app store
Definition at line 199 of file Config.php.
| loadAttributeGroups | ( | ) |
| loadAttributeSets | ( | ) |
| loadProductTypes | ( | ) |
| setStoreId | ( | $storeId | ) |
Set store id
| integer | $storeId |
Definition at line 188 of file Config.php.
|
protected |
Definition at line 33 of file Config.php.
|
protected |
Definition at line 38 of file Config.php.
|
protected |
Definition at line 23 of file Config.php.
|
protected |
Definition at line 28 of file Config.php.
|
protected |
Definition at line 118 of file Config.php.
|
protected |
Definition at line 83 of file Config.php.
|
protected |
Definition at line 104 of file Config.php.
|
protected |
Definition at line 50 of file Config.php.
|
protected |
Definition at line 111 of file Config.php.
|
protected |
Definition at line 43 of file Config.php.
|
protected |
Definition at line 76 of file Config.php.
|
protected |
Definition at line 97 of file Config.php.
|
protected |
Definition at line 69 of file Config.php.
|
protected |
Definition at line 90 of file Config.php.
|
protected |
Definition at line 64 of file Config.php.
|
protected |
Definition at line 57 of file Config.php.
| const XML_PATH_LIST_DEFAULT_SORT_BY = 'catalog/frontend/default_sort_by' |
Definition at line 18 of file Config.php.