PHP 클래스 Smalot\Magento\Catalog\ProductMedia

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

공개 메소드들

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