Class Mage_Eav_Model_Entity_Setup
EAV Entity Setup Model
- Mage_Core_Model_Resource_Setup
- Mage_Eav_Model_Entity_Setup
Direct known subclasses
Mage_Catalog_Model_Resource_Setup, Mage_Checkout_Model_Resource_Setup, Mage_Customer_Model_Resource_Setup, Mage_Sales_Model_Entity_Setup, Mage_Sales_Model_Resource_SetupIndirect known subclasses
Mage_Catalog_Model_Resource_Eav_Mysql4_Setup, Mage_Checkout_Model_Mysql4_Setup, Mage_Tax_Model_Mysql4_Setup, Mage_Tax_Model_Resource_Setup, Mage_Weee_Model_Mysql4_Setup, Mage_Weee_Model_Resource_Setup, Mage_XmlConnect_Model_Mysql4_Setup, Mage_XmlConnect_Model_Resource_Setup, Mage_Customer_Model_Entity_Setup, Mage_GiftMessage_Model_Mysql4_Setup, Mage_GiftMessage_Model_Resource_Setup, Mage_GoogleCheckout_Model_Mysql4_Setup, Mage_GoogleCheckout_Model_Resource_Setup, Mage_Paypal_Model_Mysql4_Setup, Mage_Paypal_Model_Resource_Setup, Mage_Sales_Model_Mysql4_SetupCategory: 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/Eav/Model/Entity/Setup.php
public
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
|
public
integer
|
|
public
|
|
public
integer
|
#
getAttributeSetSortOrder( mixed $entityTypeId, integer $sortOrder = null )
Retrieve Attribute Set Sort order |
public
|
|
public
|
#
updateAttributeSet( mixed $entityTypeId, integer $id, string $field, mixed $value = null )
Update attribute set data |
public
mixed
|
#
getAttributeSet( mixed $entityTypeId, mixed $id, string $field = null )
Retrieve Attribute set data by id or name |
public
integer
|
|
public
|
|
public
|
#
setDefaultSetToEntityType( mixed $entityType, mixed $attributeSet = 'Default' )
Set Default Attribute Set to Entity Type |
public
array
|
|
public
integer
|
#
getDefaultAttributeSetId( string|integer $entityType )
Retrieve Default Attribute Set for Entity Type |
public
integer
|
#
getAttributeGroupSortOrder( mixed $entityTypeId, mixed $setId, integer $sortOrder = null )
Retrieve Attribute Group Sort order |
public
|
#
addAttributeGroup( mixed $entityTypeId, mixed $setId, string $name, integer $sortOrder = null )
Add Attribute Group |
public
|
#
updateAttributeGroup( mixed $entityTypeId, mixed $setId, mixed $id, string $field, mixed $value = null )
Update Attribute Group Data |
public
mixed
|
#
getAttributeGroup( mixed $entityTypeId, mixed $setId, mixed $id, string $field = null )
Retrieve Attribute Group Data |
public
|
#
getAttributeGroupId( mixed $entityTypeId, mixed $setId, mixed $groupId )
Retrieve Attribute Group Id by Id or Name |
public
|
#
removeAttributeGroup( mixed $entityTypeId, mixed $setId, mixed $id )
Remove Attribute Group By Id or Name |
public
integer
|
#
getDefaultAttributeGroupId( string|integer $entityType, integer $attributeSetId = null )
Retrieve Default Attribute Group Id By Entity Type and Attribute Set |
protected
string
|
|
protected
array
|
|
protected
true
|
|
public
|
#
addAttribute( string|integer $entityTypeId, string $code, array $attr )
Add attribute to an entity type |
public
|
|
public
|
#
updateAttribute( mixed $entityTypeId, mixed $id, string $field, mixed $value = null, integer $sortOrder = null )
Update Attribute data and Attribute additional data |
protected
|
#
_updateAttribute( mixed $entityTypeId, mixed $id, string $field, mixed $value = null, integer $sortOrder = null )
Update Attribute data |
protected
|
#
_updateAttributeAdditionalData( mixed $entityTypeId, mixed $id, string $field, mixed $value = null )
Update Attribute Additional data |
public
mixed
|
#
getAttribute( mixed $entityTypeId, mixed $id, string $field = null )
Retrieve Attribute Data By Id or Code |
public
integer
|
|
public
string
|
#
getAttributeTable( integer|string $entityTypeId, integer|string $id )
Return table name for eav attribute |
public
|
|
public
|
#
getAttributeSortOrder( mixed $entityTypeId, mixed $setId, mixed $groupId, integer $sortOrder = null )
Retrieve Attribute Sort Order |
public
|
#
addAttributeToSet( mixed $entityTypeId, mixed $setId, mixed $groupId, mixed $attributeId, integer $sortOrder = null )
Add Attribute to All Groups on Attribute Set |
public
|
#
addAttributeToGroup( integer|string $entityType, integer|string $setId, integer|string $groupId, integer|string $attributeId, integer $sortOrder = null )
Add or update attribute to group |
public
|
|
public
unknown
|
|
protected
array
|
|
protected
|
|
protected
|
#
_insertAttributeAdditionalData( integer $entityTypeId, array $data )
Insert attribute additional data |
protected
string
|
$_generalGroupName | 'General' |
#
General Attribute Group Name |
public
array
|
$defaultGroupIdAssociations | array(
'General' => 1
) |
#
Default attribute group name to id pairs |
protected
string
|
$_defaultGroupName | 'Default' |
#
Default attribute group name |
protected
string
|
$_defaultAttributeSetName | 'Default' |
#
Default attribute set name |