Class Mage_Sales_Model_Resource_Setup
Setup Model of Sales Module
- Mage_Core_Model_Resource_Setup
- Mage_Eav_Model_Entity_Setup
- Mage_Sales_Model_Resource_Setup
Direct known subclasses
Mage_GiftMessage_Model_Resource_Setup, Mage_Paypal_Model_Resource_Setup, Mage_Sales_Model_Mysql4_Setup, Mage_Tax_Model_Resource_Setup, Mage_Weee_Model_Resource_SetupIndirect known subclasses
Mage_GiftMessage_Model_Mysql4_Setup, Mage_Paypal_Model_Mysql4_Setup, Mage_Tax_Model_Mysql4_Setup, Mage_Weee_Model_Mysql4_Setup
Package: Mage\Sales
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/Sales/Model/Resource/Setup.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/Sales/Model/Resource/Setup.php
protected
boolean
|
|
public
|
#
addAttribute( integer|string $entityTypeId, string $code, array $attr )
Add entity attribute. Overwrited for flat entities support |
protected
|
#
_addFlatAttribute( string $table, string $attribute, array $attr )
Add attribute as separate column in the table |
protected
|
#
_addGridAttribute( string $table, string $attribute, array $attr, string $entityTypeId )
Add attribute to grid table if necessary |
protected
array
|
#
_getAttributeColumnDefinition( string $code, array $data )
Retrieve definition of column for create in flat table |
public
array
|
protected
array
|
$_flatEntityTables | array(
'quote' => 'sales/quote',
'quote_item' => 'sales/quote_item',
'quote_address' => 'sales/quote_address',
'quote_address_item'=> 'sales/quote_address_item',
'quote_address_rate'=> 'sales/quote_shipping_rate',
'quote_payment' => 'sales/quote_payment',
'order' => 'sales/order',
'order_payment' => 'sales/order_payment',
'order_item' => 'sales/order_item',
'order_address' => 'sales/order_address',
'order_status_history' => 'sales/order_status_history',
'invoice' => 'sales/invoice',
'invoice_item' => 'sales/invoice_item',
'invoice_comment' => 'sales/invoice_comment',
'creditmemo' => 'sales/creditmemo',
'creditmemo_item' => 'sales/creditmemo_item',
'creditmemo_comment'=> 'sales/creditmemo_comment',
'shipment' => 'sales/shipment',
'shipment_item' => 'sales/shipment_item',
'shipment_track' => 'sales/shipment_track',
'shipment_comment' => 'sales/shipment_comment',
) |
#
List of entities converted from EAV to flat data structure |
protected
array
|
$_flatEntitiesGrid | array(
'order',
'invoice',
'shipment',
'creditmemo'
) |
#
List of entities used with separate grid table |
$_defaultAttributeSetName,
$_defaultGroupName,
$_generalGroupName,
$defaultGroupIdAssociations
|