Class Mage_Catalog_Model_Product_Attribute_Backend_Media
Catalog product media gallery attribute backend model
- Mage_Eav_Model_Entity_Attribute_Backend_Abstract implements Mage_Eav_Model_Entity_Attribute_Backend_Interface
- Mage_Catalog_Model_Product_Attribute_Backend_Media
Package: Mage\Catalog
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Catalog/Model/Product/Attribute/Backend/Media.php
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Catalog/Model/Product/Attribute/Backend/Media.php
public
|
|
protected
|
|
public
boolean
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
#
addImage(
Add image to media gallery and return new filename |
public
array
|
#
addImagesWithDifferentMediaAttributes(
Add images with different media attributes. Image will be added only once if the same image is used with different media attributes |
public
|
#
updateImage(
Update image in gallery |
public
|
|
public
array|boolean
|
|
public
|
#
clearMediaAttribute(
Clear media attribute value |
public
|
#
setMediaAttribute(
Set media attribute value |
protected
|
|
protected
|
|
protected
string
|
|
protected
string
|
#
_getUniqueFileName( <type> $file, <type> $dirsep )
Check whether file to move exists. Getting unique name |
protected
string
|
|
public
|
|
protected
String
|
#
_getNotDuplicatedFilename( String $fileName, String $dispretionPath )
Get filename which is not duplicated with other files in media temporary and media directories |
protected
array
|
$_renamedImages | array() |
$_attribute,
$_defaultValue,
$_entityIdField,
$_table,
$_valueId,
$_valueIds
|