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

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

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

Метод Описание
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