PHP Класс Smalot\Magento\Catalog\ProductAttribute

Наследование: extends Smalot\Magento\MagentoModuleAbstract
Показать файл Открыть проект

Открытые методы

Метод Описание
addOption ( string $attribute, array $data ) : Smalot\Magento\ActionInterface Allows you to add a new option for attributes with selectable fields.
create ( array $data ) : Smalot\Magento\ActionInterface Allows you to create a new product attribute.
getInfo ( string $attribute ) : Smalot\Magento\ActionInterface Allows you to get full information about a required attribute with the list of options.
getList ( string $setId ) : Smalot\Magento\ActionInterface Allows you to retrieve the list of product attributes.
getOptions ( string $attributeId, string $storeView = null ) : Smalot\Magento\ActionInterface Allows you to retrieve the product attribute options.
getTypes ( ) : Smalot\Magento\ActionInterface Allows you to retrieve the list of possible attribute types.
remove ( string $attribute ) : Smalot\Magento\ActionInterface Allows you to remove the required attribute from a product.
removeOption ( string $attribute, string $optionId ) : Smalot\Magento\ActionInterface Allows you to remove the option for an attribute.
setCurrentStore ( string $storeView ) : Smalot\Magento\ActionInterface Allows you to set/get the current store view.
update ( string $attribute, array $data ) : Smalot\Magento\ActionInterface Allows you to update the required attribute.

Описание методов

addOption() публичный Метод

Allows you to add a new option for attributes with selectable fields.
public addOption ( string $attribute, array $data ) : Smalot\Magento\ActionInterface
$attribute string
$data array
Результат Smalot\Magento\ActionInterface

create() публичный Метод

Allows you to create a new product attribute.
public create ( array $data ) : Smalot\Magento\ActionInterface
$data array
Результат Smalot\Magento\ActionInterface

getInfo() публичный Метод

Allows you to get full information about a required attribute with the list of options.
public getInfo ( string $attribute ) : Smalot\Magento\ActionInterface
$attribute string
Результат Smalot\Magento\ActionInterface

getList() публичный Метод

Allows you to retrieve the list of product attributes.
public getList ( string $setId ) : Smalot\Magento\ActionInterface
$setId string
Результат Smalot\Magento\ActionInterface

getOptions() публичный Метод

Allows you to retrieve the product attribute options.
public getOptions ( string $attributeId, string $storeView = null ) : Smalot\Magento\ActionInterface
$attributeId string
$storeView string
Результат Smalot\Magento\ActionInterface

getTypes() публичный Метод

Allows you to retrieve the list of possible attribute types.
public getTypes ( ) : Smalot\Magento\ActionInterface
Результат Smalot\Magento\ActionInterface

remove() публичный Метод

Allows you to remove the required attribute from a product.
public remove ( string $attribute ) : Smalot\Magento\ActionInterface
$attribute string
Результат Smalot\Magento\ActionInterface

removeOption() публичный Метод

Allows you to remove the option for an attribute.
public removeOption ( string $attribute, string $optionId ) : Smalot\Magento\ActionInterface
$attribute string
$optionId string
Результат Smalot\Magento\ActionInterface

setCurrentStore() публичный Метод

Allows you to set/get the current store view.
public setCurrentStore ( string $storeView ) : Smalot\Magento\ActionInterface
$storeView string
Результат Smalot\Magento\ActionInterface

update() публичный Метод

Allows you to update the required attribute.
public update ( string $attribute, array $data ) : Smalot\Magento\ActionInterface
$attribute string
$data array
Результат Smalot\Magento\ActionInterface