PHP 클래스 Smalot\Magento\Catalog\ProductLink

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

공개 메소드들

메소드 설명
assign ( string $type, string $productId, string $linkedProductId, array $data, string $identifierType = null ) : Smalot\Magento\ActionInterface Allows you to assign a product link (related, cross-sell, up-sell, or grouped) to another product.
getAttributes ( string $type ) : Smalot\Magento\ActionInterface Allows you to retrieve the product link type attributes.
getList ( string $type, string $productId, string $identifierType = null ) : Smalot\Magento\ActionInterface Allows you to retrieve the list of linked products for a specific product.
getTypes ( ) : Smalot\Magento\ActionInterface Allows you to retrieve the list of product link types.
remove ( string $type, string $productId, string $linkedProductId, string $identifierType = null ) : Smalot\Magento\ActionInterface Allows you to remove the product link from a specific product.
update ( string $type, string $productId, string $linkedProductId, array $data, string $identifierType = null ) : Smalot\Magento\ActionInterface Allows you to update the product link.

메소드 상세

assign() 공개 메소드

Allows you to assign a product link (related, cross-sell, up-sell, or grouped) to another product.
public assign ( string $type, string $productId, string $linkedProductId, array $data, string $identifierType = null ) : Smalot\Magento\ActionInterface
$type string
$productId string
$linkedProductId string
$data array
$identifierType string
리턴 Smalot\Magento\ActionInterface

getAttributes() 공개 메소드

Allows you to retrieve the product link type attributes.
public getAttributes ( string $type ) : Smalot\Magento\ActionInterface
$type string
리턴 Smalot\Magento\ActionInterface

getList() 공개 메소드

Allows you to retrieve the list of linked products for a specific product.
public getList ( string $type, string $productId, string $identifierType = null ) : Smalot\Magento\ActionInterface
$type string
$productId string
$identifierType string
리턴 Smalot\Magento\ActionInterface

getTypes() 공개 메소드

Allows you to retrieve the list of product link types.
public getTypes ( ) : Smalot\Magento\ActionInterface
리턴 Smalot\Magento\ActionInterface

remove() 공개 메소드

Allows you to remove the product link from a specific product.
public remove ( string $type, string $productId, string $linkedProductId, string $identifierType = null ) : Smalot\Magento\ActionInterface
$type string
$productId string
$linkedProductId string
$identifierType string
리턴 Smalot\Magento\ActionInterface

update() 공개 메소드

Allows you to update the product link.
public update ( string $type, string $productId, string $linkedProductId, array $data, string $identifierType = null ) : Smalot\Magento\ActionInterface
$type string
$productId string
$linkedProductId string
$data array
$identifierType string
리턴 Smalot\Magento\ActionInterface