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

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

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

Метод Описание
create ( string $product, array $data, string $storeView = null, string $identifierType = null ) : Smalot\Magento\ActionInterface Allows you to upload a new product image.
getInfo ( string $productId, string $file, string $storeView = null, string $identifierType = null ) : Smalot\Magento\ActionInterface Allows you to retrieve information about the specified product image.
getList ( string $productId, string $storeView = null, string $identifierType = null ) : Smalot\Magento\ActionInterface Allows you to retrieve the list of product images.
getTypes ( string $setId ) : Smalot\Magento\ActionInterface Allows you to retrieve product image types including standard image, small_image, thumbnail, etc.
remove ( string $productId, string $file, string $identifierType = null ) : Smalot\Magento\ActionInterface Allows you to remove the image from a product.
setCurrentStore ( string $storeView ) : Smalot\Magento\ActionInterface Allows you to set/get the current store view.
update ( string $productId, string $file, array $data, string $storeView = null, string $identifierType = null ) : Smalot\Magento\ActionInterface Allows you to update the product image.

Описание методов

create() публичный Метод

Allows you to upload a new product image.
public create ( string $product, array $data, string $storeView = null, string $identifierType = null ) : Smalot\Magento\ActionInterface
$product string
$data array
$storeView string
$identifierType string
Результат Smalot\Magento\ActionInterface

getInfo() публичный Метод

Allows you to retrieve information about the specified product image.
public getInfo ( string $productId, string $file, string $storeView = null, string $identifierType = null ) : Smalot\Magento\ActionInterface
$productId string
$file string
$storeView string
$identifierType string
Результат Smalot\Magento\ActionInterface

getList() публичный Метод

Allows you to retrieve the list of product images.
public getList ( string $productId, string $storeView = null, string $identifierType = null ) : Smalot\Magento\ActionInterface
$productId string
$storeView string
$identifierType string
Результат Smalot\Magento\ActionInterface

getTypes() публичный Метод

Note that if the product attribute set contains attributes of the Media Image type (Catalog Input Type for Store Owner > Media Image), it will also be returned in the response.
public getTypes ( string $setId ) : Smalot\Magento\ActionInterface
$setId string
Результат Smalot\Magento\ActionInterface

remove() публичный Метод

Allows you to remove the image from a product.
public remove ( string $productId, string $file, string $identifierType = null ) : Smalot\Magento\ActionInterface
$productId string
$file string
$identifierType 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 product image.
public update ( string $productId, string $file, array $data, string $storeView = null, string $identifierType = null ) : Smalot\Magento\ActionInterface
$productId string
$file string
$data array
$storeView string
$identifierType string
Результат Smalot\Magento\ActionInterface