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_Condition_Abstract

Abstract Rule condition data model

Varien_Object
Extended by Mage_Rule_Model_Condition_Abstract implements Mage_Rule_Model_Condition_Interface

Direct known subclasses

Mage_Rule_Model_Condition_Combine, Mage_Rule_Model_Condition_Product_Abstract, Mage_SalesRule_Model_Rule_Condition_Address

Indirect known subclasses

Mage_CatalogRule_Model_Rule_Condition_Combine, Mage_CatalogRule_Model_Rule_Condition_Product, Mage_SalesRule_Model_Rule_Condition_Combine, Mage_SalesRule_Model_Rule_Condition_Product, Mage_SalesRule_Model_Rule_Condition_Product_Combine, Mage_SalesRule_Model_Rule_Condition_Product_Found, Mage_SalesRule_Model_Rule_Condition_Product_Subselect
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/Condition/Abstract.php
Methods summary
public
# __construct( )
public array
# getDefaultOperatorInputByType( )

Default operator input by type map getter

Default operator input by type map getter

Returns

array
public array
# getDefaultOperatorOptions( )

Default operator options getter Provides all possible operator options

Default operator options getter Provides all possible operator options

Returns

array
public
# getForm( )
public
# asArray( array $arrAttributes = array() )
public
# asXml( )
public
# loadArray( mixed $arr )
public
# loadXml( mixed $xml )
public
# loadAttributeOptions( )
public
# getAttributeOptions( )
public
# getAttributeSelectOptions( )
public
# getAttributeName( )
public
# loadOperatorOptions( )
public string
# getInputType( )

This value will define which operators will be available for this condition.

This value will define which operators will be available for this condition.

Possible values are: string, numeric, date, select, multiselect, grid, boolean

Returns

string
public
# getOperatorSelectOptions( )
public
# getOperatorName( )
public
# loadValueOptions( )
public
# getValueSelectOptions( )
public array|string|integer|float
# getValueParsed( )

Retrieve parsed value

Retrieve parsed value

Returns

array|string|integer|float
public boolean
# isArrayOperatorType( )

Check if value should be array

Check if value should be array

Depends on operator input type

Returns

boolean
public
# getValue( )
public
# getValueName( )
public array
# getNewChildSelectOptions( )

Get inherited conditions selectors

Get inherited conditions selectors

Returns

array
public
# getNewChildName( )
public
# asHtml( )
public
# asHtmlRecursive( )
public
# getTypeElement( )
public
# getTypeElementHtml( )
public
# getAttributeElement( )
public
# getAttributeElementHtml( )
public Varien_Data_Form_Element_Select
# getOperatorElement( )

Retrieve Condition Operator element Instance If the operator value is empty - define first available operator value as default

Retrieve Condition Operator element Instance If the operator value is empty - define first available operator value as default

Returns

Varien_Data_Form_Element_Select
public
# getOperatorElementHtml( )
public string
# getValueElementType( )

Value element type will define renderer for condition value element

Value element type will define renderer for condition value element

Returns

string

See

Varien_Data_Form_Element
public
# getValueElementRenderer( )
public
# getValueElement( )
public
# getValueElementHtml( )
public
# getAddLinkHtml( )
public
# getRemoveLinkHtml( )
public
# getChooserContainerHtml( )
public
# asString( mixed $format = '' )
public
# asStringRecursive( mixed $level = 0 )
public boolean
# validateAttribute( mixed $validatedValue )

Validate product attrbute value for condition

Validate product attrbute value for condition

Parameters

$validatedValue
mixed
$validatedValue product attribute value

Returns

boolean
protected boolean
# _compareValues( string|integer|float $validatedValue, string|integer|float $value, mixed $strict = true )

Case and type insensitive comparison of values

Case and type insensitive comparison of values

Parameters

$validatedValue
string|integer|float
$validatedValue
$value
string|integer|float
$value
$strict

Returns

boolean
public
# validate( Varien_Object $object )
public string
# getOperatorForValidate( )

Retrieve operator for php validation

Retrieve operator for php validation

Returns

string
Properties summary
protected string $_inputType null
#

Defines which operators will be available for this condition

Defines which operators will be available for this condition

protected array $_defaultOperatorOptions null
#

Default values for possible operator options

Default values for possible operator options

protected array $_defaultOperatorInputByType null
#

Default combinations of operator options, depending on input type

Default combinations of operator options, depending on input type

protected array $_arrayInputTypes array()
#

List of input types for values which should be array

List of input types for values which should be array

Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0