PHP Class Smalot\Magento\Catalog\ProductDownloadableLink

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

Public Methods

Method Description
add ( string $productId, array $resource, string $resourceType, string $store = null, string $identifierType = null ) : Smalot\Magento\ActionInterface Allows you to add a new link to a downloadable product.
getList ( string $productId, string $store = null, string $identifierType = null ) : Smalot\Magento\ActionInterface Allows you to retrieve a list of links of a downloadable product.
remove ( string $linkId, string $resourceType ) : Smalot\Magento\ActionInterface Allows you to remove a link/sample from a downloadable product.

Method Details

add() public method

Allows you to add a new link to a downloadable product.
public add ( string $productId, array $resource, string $resourceType, string $store = null, string $identifierType = null ) : Smalot\Magento\ActionInterface
$productId string
$resource array
$resourceType string
$store string
$identifierType string
return Smalot\Magento\ActionInterface

getList() public method

Allows you to retrieve a list of links of a downloadable product.
public getList ( string $productId, string $store = null, string $identifierType = null ) : Smalot\Magento\ActionInterface
$productId string
$store string
$identifierType string
return Smalot\Magento\ActionInterface

remove() public method

Allows you to remove a link/sample from a downloadable product.
public remove ( string $linkId, string $resourceType ) : Smalot\Magento\ActionInterface
$linkId string
$resourceType string
return Smalot\Magento\ActionInterface