PHP Class Smalot\Magento\Catalog\ProductAttribute

Inheritance: extends Smalot\Magento\MagentoModuleAbstract
Afficher le fichier Open project: smalot/magento-client

Méthodes publiques

Méthode Description
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.

Method Details

addOption() public méthode

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
Résultat Smalot\Magento\ActionInterface

create() public méthode

Allows you to create a new product attribute.
public create ( array $data ) : Smalot\Magento\ActionInterface
$data array
Résultat Smalot\Magento\ActionInterface

getInfo() public méthode

Allows you to get full information about a required attribute with the list of options.
public getInfo ( string $attribute ) : Smalot\Magento\ActionInterface
$attribute string
Résultat Smalot\Magento\ActionInterface

getList() public méthode

Allows you to retrieve the list of product attributes.
public getList ( string $setId ) : Smalot\Magento\ActionInterface
$setId string
Résultat Smalot\Magento\ActionInterface

getOptions() public méthode

Allows you to retrieve the product attribute options.
public getOptions ( string $attributeId, string $storeView = null ) : Smalot\Magento\ActionInterface
$attributeId string
$storeView string
Résultat Smalot\Magento\ActionInterface

getTypes() public méthode

Allows you to retrieve the list of possible attribute types.
public getTypes ( ) : Smalot\Magento\ActionInterface
Résultat Smalot\Magento\ActionInterface

remove() public méthode

Allows you to remove the required attribute from a product.
public remove ( string $attribute ) : Smalot\Magento\ActionInterface
$attribute string
Résultat Smalot\Magento\ActionInterface

removeOption() public méthode

Allows you to remove the option for an attribute.
public removeOption ( string $attribute, string $optionId ) : Smalot\Magento\ActionInterface
$attribute string
$optionId string
Résultat Smalot\Magento\ActionInterface

setCurrentStore() public méthode

Allows you to set/get the current store view.
public setCurrentStore ( string $storeView ) : Smalot\Magento\ActionInterface
$storeView string
Résultat Smalot\Magento\ActionInterface

update() public méthode

Allows you to update the required attribute.
public update ( string $attribute, array $data ) : Smalot\Magento\ActionInterface
$attribute string
$data array
Résultat Smalot\Magento\ActionInterface