Class Mage_SalesRule_Model_Resource_Rule
Sales Rule resource model
- Mage_Core_Model_Resource_Abstract
- Mage_Core_Model_Resource_Db_Abstract
- Mage_Rule_Model_Resource_Abstract
- Mage_SalesRule_Model_Resource_Rule
Direct known subclasses
Mage_SalesRule_Model_Mysql4_Rule
Package: Mage\SalesRule
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/SalesRule/Model/Resource/Rule.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/SalesRule/Model/Resource/Rule.php
protected
|
|
protected
|
#
_afterLoad(
Add customer group ids and website ids to rule data after load |
public
|
|
protected
|
#
_afterSave(
Bind sales rule to customer group(s) and website(s). Save rule's associated store labels. Save product attributes used in rule. |
public
string
|
#
getCustomerUses(
Retrieve coupon/rule uses for specified customer |
public
|
|
public
array
|
|
public
string
|
|
public
mixed
|
#
getActiveAttributes( unknown_type $websiteId, unknown_type $customerGroupId )
Return codes of all product attributes currently used in promo rules for specified customer group and website |
public
|
#
setActualProductAttributes(
Save product attributes currently used in conditions and actions of rule |
public
array
|
#
getProductAttributes( string $serializedString )
Collect all product attributes used in serialized rule's action or condition |
_getAssociatedEntityInfo(),
bindRuleToEntity(),
getAssociatedEntityIds(),
getCustomerGroupIds(),
getWebsiteIds(),
unbindRuleFromEntity()
|
protected
array
|
$_associatedEntitiesMap | array(
'website' => array(
'associations_table' => 'salesrule/website',
'rule_id_field' => 'rule_id',
'entity_id_field' => 'website_id'
),
'customer_group' => array(
'associations_table' => 'salesrule/customer_group',
'rule_id_field' => 'rule_id',
'entity_id_field' => 'customer_group_id'
)
) |
#
Store associated with rule entities information map |
$_commitCallbacks
|