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_Abstract

Abstract Rule entity data model

Varien_Object
Extended by Mage_Core_Model_Abstract
Extended by Mage_Rule_Model_Abstract

Direct known subclasses

Mage_CatalogRule_Model_Rule, Mage_SalesRule_Model_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/Abstract.php
Methods summary
abstract public Mage_Rule_Model_Condition_Combine
# getConditionsInstance( )

Getter for rule combine conditions instance

Getter for rule combine conditions instance

Returns

Mage_Rule_Model_Condition_Combine
abstract public Mage_Rule_Model_Action_Collection
# getActionsInstance( )

Getter for rule actions collection instance

Getter for rule actions collection instance

Returns

Mage_Rule_Model_Action_Collection
protected Mage_Rule_Model_Abstract
# _beforeSave( )

Prepare data before saving

Prepare data before saving

Returns

Mage_Rule_Model_Abstract

Overrides

Mage_Core_Model_Abstract::_beforeSave()
public Mage_Rule_Model_Abstract
# setConditions( Mage_Rule_Model_Condition_Combine $conditions )

Set rule combine conditions model

Set rule combine conditions model

Parameters

$conditions
Mage_Rule_Model_Condition_Combine
$conditions

Returns

Mage_Rule_Model_Abstract
public Mage_Rule_Model_Condition_Combine
# getConditions( )

Retrieve rule combine conditions model

Retrieve rule combine conditions model

Returns

Mage_Rule_Model_Condition_Combine
public Mage_Rule_Model_Abstract
# setActions( Mage_Rule_Model_Action_Collection $actions )

Set rule actions model

Set rule actions model

Parameters

$actions
Mage_Rule_Model_Action_Collection
$actions

Returns

Mage_Rule_Model_Abstract
public Mage_Rule_Model_Action_Collection
# getActions( )

Retrieve rule actions model

Retrieve rule actions model

Returns

Mage_Rule_Model_Action_Collection
protected Mage_Rule_Model_Abstract
# _resetConditions( null|Mage_Rule_Model_Condition_Combine $conditions = null )

Reset rule combine conditions

Reset rule combine conditions

Parameters

$conditions
null|Mage_Rule_Model_Condition_Combine
$conditions

Returns

Mage_Rule_Model_Abstract
protected Mage_Rule_Model_Abstract
# _resetActions( null|Mage_Rule_Model_Action_Collection $actions = null )

Reset rule actions

Reset rule actions

Parameters

$actions
null|Mage_Rule_Model_Action_Collection
$actions

Returns

Mage_Rule_Model_Abstract
public Varien_Data_Form
# getForm( )

Rule form getter

Rule form getter

Returns

Varien_Data_Form
public Mage_Rule_Model_Abstract
# loadPost( array $data )

Initialize rule model data from array

Initialize rule model data from array

Parameters

$data
array
$data

Returns

Mage_Rule_Model_Abstract
protected array
# _convertFlatToRecursive( array $data )

Set specified data to current rule. Set conditions and actions recursively. Convert dates into Zend_Date.

Set specified data to current rule. Set conditions and actions recursively. Convert dates into Zend_Date.

Parameters

$data
array
$data

Returns

array
public boolean
# validate( Varien_Object $object )

Validate rule conditions to determine if rule can run

Validate rule conditions to determine if rule can run

Parameters

$object
Varien_Object
$object

Returns

boolean
public boolean|array
# validateData( Varien_Object $object )

Validate rule data

Validate rule data

Parameters

$object
Varien_Object
$object

Returns

boolean|array
- return true if validation passed successfully. Array with errors description otherwise
public boolean
# isDeleteable( )

Check availability to delete rule

Check availability to delete rule

Returns

boolean
public Mage_Rule_Model_Abstract
# setIsDeleteable( boolean $value )

Set is rule can be deleted flag

Set is rule can be deleted flag

Parameters

$value
boolean
$value

Returns

Mage_Rule_Model_Abstract
public boolean
# isReadonly( )

Check if rule is readonly

Check if rule is readonly

Returns

boolean
public Mage_Rule_Model_Abstract
# setIsReadonly( boolean $value )

Set is readonly flag to rule

Set is readonly flag to rule

Parameters

$value
boolean
$value

Returns

Mage_Rule_Model_Abstract
public array
# getWebsiteIds( )

Get rule associated website Ids

Get rule associated website Ids

Returns

array
Methods inherited from Mage_Core_Model_Abstract
_afterDelete(), _afterDeleteCommit(), _afterLoad(), _afterSave(), _beforeDelete(), _beforeLoad(), _clearData(), _clearReferences(), _getEventData(), _getResource(), _hasModelChanged(), _init(), _protectFromNonAdmin(), _setResourceModel(), afterCommitCallback(), afterLoad(), cleanModelCache(), clearInstance(), delete(), getCacheIdTags(), getCacheTags(), getCollection(), getEntityId(), getId(), getIdFieldName(), getResource(), getResourceCollection(), getResourceName(), isObjectNew(), load(), save(), setId()
Properties summary
protected Mage_Rule_Model_Condition_Combine $_conditions
#

Store rule combine conditions model

Store rule combine conditions model

protected Mage_Rule_Model_Action_Collection $_actions
#

Store rule actions model

Store rule actions model

protected Varien_Data_Form $_form
#

Store rule form instance

Store rule form instance

protected boolean $_isDeleteable true
#

Is model can be deleted flag

Is model can be deleted flag

protected boolean $_isReadonly false
#

Is model readonly

Is model readonly

Properties inherited from Mage_Core_Model_Abstract
$_cacheTag, $_dataSaveAllowed, $_eventObject, $_eventPrefix, $_isObjectNew, $_resource, $_resourceCollectionName, $_resourceName
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0