Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Rule_Block_Actions
  • Mage_Rule_Block_Conditions
  • Mage_Rule_Block_Editable
  • Mage_Rule_Block_Newchild
  • Mage_Rule_Block_Rule
  • Mage_Rule_Helper_Data
  • Mage_Rule_Model_Abstract
  • Mage_Rule_Model_Action_Abstract
  • Mage_Rule_Model_Action_Collection
  • Mage_Rule_Model_Condition_Abstract
  • Mage_Rule_Model_Condition_Combine
  • Mage_Rule_Model_Condition_Product_Abstract
  • Mage_Rule_Model_Environment
  • Mage_Rule_Model_Mysql4_Rule
  • Mage_Rule_Model_Mysql4_Rule_Collection
  • Mage_Rule_Model_Renderer_Actions
  • Mage_Rule_Model_Renderer_Conditions
  • Mage_Rule_Model_Resource_Abstract
  • Mage_Rule_Model_Resource_Rule_Collection_Abstract

Interfaces

  • Mage_Rule_Model_Action_Interface
  • Mage_Rule_Model_Condition_Interface
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Rule_Model_Resource_Abstract

Abstract Rule entity resource model

Mage_Core_Model_Resource_Abstract
Extended by Mage_Core_Model_Resource_Db_Abstract
Extended by Mage_Rule_Model_Resource_Abstract

Direct known subclasses

Mage_CatalogRule_Model_Resource_Rule, Mage_SalesRule_Model_Resource_Rule

Indirect known subclasses

Mage_CatalogRule_Model_Mysql4_Rule, Mage_Rule_Model_Mysql4_Rule, Mage_SalesRule_Model_Mysql4_Rule
Abstract
Package: Mage\Rule
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/Rule/Model/Resource/Abstract.php
Methods summary
public Mage_Rule_Model_Resource_Abstract
# _beforeSave( Mage_Core_Model_Abstract $object )

Prepare rule's active "from" and "to" dates

Prepare rule's active "from" and "to" dates

Parameters

$object
Mage_Core_Model_Abstract
$object

Returns

Mage_Rule_Model_Resource_Abstract

Overrides

Mage_Core_Model_Resource_Db_Abstract::_beforeSave()
public Mage_Rule_Model_Resource_Abstract
# bindRuleToEntity( array|integer|string $ruleIds, array|integer|string $entityIds, string $entityType )

Bind specified rules to entities

Bind specified rules to entities

Parameters

$ruleIds
array|integer|string
$ruleIds
$entityIds
array|integer|string
$entityIds
$entityType
string
$entityType

Returns

Mage_Rule_Model_Resource_Abstract
public Mage_Rule_Model_Resource_Abstract
# unbindRuleFromEntity( array|integer|string $ruleIds = array(), array|integer|string $entityIds = array(), string $entityType )

Unbind specified rules from entities

Unbind specified rules from entities

Parameters

$ruleIds
array|integer|string
$ruleIds
$entityIds
array|integer|string
$entityIds
$entityType
string
$entityType

Returns

Mage_Rule_Model_Resource_Abstract
public array
# getAssociatedEntityIds( integer $ruleId, string $entityType )

Retrieve rule's associated entity Ids by entity type

Retrieve rule's associated entity Ids by entity type

Parameters

$ruleId
integer
$ruleId
$entityType
string
$entityType

Returns

array
public array
# getWebsiteIds( integer $ruleId )

Retrieve website ids of specified rule

Retrieve website ids of specified rule

Parameters

$ruleId
integer
$ruleId

Returns

array
public array
# getCustomerGroupIds( integer $ruleId )

Retrieve customer group ids of specified rule

Retrieve customer group ids of specified rule

Parameters

$ruleId
integer
$ruleId

Returns

array
protected array
# _getAssociatedEntityInfo( string $entityType )

Retrieve correspondent entity information (associations table name, columns names) of rule's associated entity by specified entity type

Retrieve correspondent entity information (associations table name, columns names) of rule's associated entity by specified entity type

Parameters

$entityType
string
$entityType

Returns

array
Methods inherited from Mage_Core_Model_Resource_Db_Abstract
_afterDelete(), _afterLoad(), _afterSave(), _beforeDelete(), _checkUnique(), _getConnection(), _getLoadSelect(), _getReadAdapter(), _getWriteAdapter(), _init(), _initUniqueFields(), _prepareDataForSave(), _prepareValueForSave(), _serializeFields(), _setMainTable(), _setResource(), addUniqueField(), afterLoad(), delete(), getChecksum(), getIdFieldName(), getMainTable(), getReadConnection(), getTable(), getUniqueFields(), getValueTable(), hasDataChanged(), load(), resetUniqueField(), save(), unserializeFields()
Methods inherited from Mage_Core_Model_Resource_Abstract
__construct(), _construct(), _prepareDataForTable(), _prepareTableValueForSave(), _serializeField(), _unserializeField(), addCommitCallback(), beginTransaction(), commit(), formatDate(), mktime(), rollBack()
Properties summary
protected array $_associatedEntitiesMap array()
#

Store associated with rule entities information map

Store associated with rule entities information map

Example: array( 'entity_type1' => array( 'associations_table' => 'table_name', 'rule_id_field' => 'rule_id', 'entity_id_field' => 'entity_id' ), 'entity_type2' => array( 'associations_table' => 'table_name', 'rule_id_field' => 'rule_id', 'entity_id_field' => 'entity_id' ) .... )

Properties inherited from Mage_Core_Model_Resource_Db_Abstract
$_connections, $_fieldsForUpdate, $_idFieldName, $_isPkAutoIncrement, $_mainTable, $_mainTableFields, $_resourceModel, $_resourcePrefix, $_resources, $_serializableFields, $_tables, $_uniqueFields, $_useIsObjectNew
Properties inherited from Mage_Core_Model_Resource_Abstract
$_commitCallbacks
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0