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_Rule_Collection_Abstract

Abstract Rule entity resource collection model

Varien_Data_Collection_Db
Extended by Mage_Core_Model_Resource_Db_Collection_Abstract
Extended by Mage_Rule_Model_Resource_Rule_Collection_Abstract

Direct known subclasses

Mage_CatalogRule_Model_Resource_Rule_Collection, Mage_SalesRule_Model_Resource_Rule_Collection

Indirect known subclasses

Mage_CatalogRule_Model_Mysql4_Rule_Collection, Mage_Rule_Model_Mysql4_Rule_Collection, Mage_SalesRule_Model_Mysql4_Rule_Collection
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/Rule/Collection/Abstract.php
Methods summary
protected Mage_Rule_Model_Resource_Rule_Collection_Abstract
# _afterLoad( )

Add website ids to rules data

Add website ids to rules data

Returns

Mage_Rule_Model_Resource_Rule_Collection_Abstract

Overrides

Mage_Core_Model_Resource_Db_Collection_Abstract::_afterLoad()
public Mage_Rule_Model_Resource_Rule_Collection_Abstract
# addWebsitesToResult( boolean|null $flag = null )

Init flag for adding rule website ids to collection result

Init flag for adding rule website ids to collection result

Parameters

$flag
boolean|null
$flag

Returns

Mage_Rule_Model_Resource_Rule_Collection_Abstract
public Mage_Rule_Model_Resource_Rule_Collection_Abstract
# addWebsiteFilter( integer|array|Mage_Core_Model_Website $websiteId )

Limit rules collection by specific websites

Limit rules collection by specific websites

Parameters

$websiteId
integer|array|Mage_Core_Model_Website
$websiteId

Returns

Mage_Rule_Model_Resource_Rule_Collection_Abstract
public Mage_Rule_Model_Resource_Rule_Collection_Abstract
# addFieldToFilter( string $field, mixed $condition = null )

Provide support for website id filter

Provide support for website id filter

Parameters

$field
string
$field
$condition
mixed
$condition

Returns

Mage_Rule_Model_Resource_Rule_Collection_Abstract
public Mage_Rule_Model_Resource_Rule_Collection_Abstract
# addIsActiveFilter( integer $isActive = 1 )

Filter collection to only active or inactive rules

Filter collection to only active or inactive rules

Parameters

$isActive
integer
$isActive

Returns

Mage_Rule_Model_Resource_Rule_Collection_Abstract
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_Collection_Abstract
__construct(), _beforeLoad(), _canUseCache(), _construct(), _getCacheTags(), _getInitialFieldsToSelect(), _init(), _initInitialFieldsToSelect(), _initSelect(), _initSelectFields(), _loadCache(), _prepareSelect(), _saveCache(), addExpressionFieldToSelect(), addFieldToSelect(), formatDate(), getAllIds(), getData(), getMainTable(), getModelName(), getResource(), getResourceModelName(), getSelect(), getTable(), join(), removeAllFieldsFromSelect(), removeFieldFromSelect(), resetItemsDataChanged(), save(), setMainTable(), setModel(), setResetItemsDataChanged(), setResourceModel()
Constants inherited from Mage_Core_Model_Resource_Db_Collection_Abstract
CACHE_TAG
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_Collection_Abstract
$_eventObject, $_eventPrefix, $_fieldsToSelect, $_fieldsToSelectChanged, $_initialFieldsToSelect, $_joinedTables, $_mainTable, $_model, $_resetItemsDataChanged, $_resource, $_resourceModel, $_useAnalyticFunction
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0