PHP Class Smalot\Magento\Catalog\ProductAttribute

Inheritance: extends Smalot\Magento\MagentoModuleAbstract
Show file Open project: smalot/magento-client

Public Methods

Method 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 method

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
return Smalot\Magento\ActionInterface

create() public method

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

getInfo() public method

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

getList() public method

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

getOptions() public method

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

getTypes() public method

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

remove() public method

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

removeOption() public method

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

setCurrentStore() public method

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

update() public method

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