PHP 클래스 Smalot\Magento\Catalog\ProductAttribute

상속: extends Smalot\Magento\MagentoModuleAbstract
파일 보기 프로젝트 열기: smalot/magento-client

공개 메소드들

메소드 설명
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