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_Product_Abstract

Abstract Rule product condition data model

Varien_Object
Extended by Mage_Rule_Model_Condition_Abstract implements Mage_Rule_Model_Condition_Interface
Extended by Mage_Rule_Model_Condition_Product_Abstract

Direct known subclasses

Mage_CatalogRule_Model_Rule_Condition_Product, Mage_SalesRule_Model_Rule_Condition_Product
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/Product/Abstract.php
Methods summary
public array
# getDefaultOperatorInputByType( )

Customize default operator input by type mapper for some types

Customize default operator input by type mapper for some types

Returns

array

Overrides

Mage_Rule_Model_Condition_Abstract::getDefaultOperatorInputByType()
public Mage_Catalog_Model_Resource_Eav_Attribute
# getAttributeObject( )

Retrieve attribute object

Retrieve attribute object

Returns

Mage_Catalog_Model_Resource_Eav_Attribute
protected
# _addSpecialAttributes( array & $attributes )

Add special attributes

Add special attributes

Parameters

$attributes
array
$attributes
public Mage_CatalogRule_Model_Rule_Condition_Product
# loadAttributeOptions( )

Load attribute options

Load attribute options

Returns

Mage_CatalogRule_Model_Rule_Condition_Product

Overrides

Mage_Rule_Model_Condition_Abstract::loadAttributeOptions()
protected Mage_CatalogRule_Model_Rule_Condition_Product
# _prepareValueOptions( )

Prepares values options to be used as select options or hashed array Result is stored in following keys:
'value_select_options' - normal select array: array(array('value' => $value, 'label' => $label), ...)
'value_option' - hashed array: array($value => $label, ...),

Prepares values options to be used as select options or hashed array Result is stored in following keys: 'value_select_options' - normal select array: array(array('value' => $value, 'label' => $label), ...) 'value_option' - hashed array: array($value => $label, ...),

Returns

Mage_CatalogRule_Model_Rule_Condition_Product
public string
# getValueOption( mixed $option = null )

Retrieve value by option

Retrieve value by option

Parameters

$option
mixed
$option

Returns

string
public array
# getValueSelectOptions( )

Retrieve select option values

Retrieve select option values

Returns

array

Overrides

Mage_Rule_Model_Condition_Abstract::getValueSelectOptions()
public string
# getValueAfterElementHtml( )

Retrieve after element HTML

Retrieve after element HTML

Returns

string
public Varien_Form_Element_Abstract
# getAttributeElement( )

Retrieve attribute element

Retrieve attribute element

Returns

Varien_Form_Element_Abstract

Overrides

Mage_Rule_Model_Condition_Abstract::getAttributeElement()
public Mage_CatalogRule_Model_Rule_Condition_Product
# collectValidatedAttributes( Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection $productCollection )

Collect validated attributes

Collect validated attributes

Parameters

$productCollection
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection
$productCollection

Returns

Mage_CatalogRule_Model_Rule_Condition_Product
public string
# getInputType( )

Retrieve input type

Retrieve input type

Returns

string

Overrides

Mage_Rule_Model_Condition_Abstract::getInputType()
public string
# getValueElementType( )

Retrieve value element type

Retrieve value element type

Returns

string

Overrides

Mage_Rule_Model_Condition_Abstract::getValueElementType()
public Varien_Data_Form_Element_Abstract
# getValueElement( )

Retrieve value element

Retrieve value element

Returns

Varien_Data_Form_Element_Abstract

Overrides

Mage_Rule_Model_Condition_Abstract::getValueElement()
public string
# getValueElementChooserUrl( )

Retrieve value element chooser URL

Retrieve value element chooser URL

Returns

string
public boolean
# getExplicitApply( )

Retrieve Explicit Apply

Retrieve Explicit Apply

Returns

boolean
public Mage_CatalogRule_Model_Rule_Condition_Product
# loadArray( array $arr )

Load array

Load array

Parameters

$arr
array
$arr

Returns

Mage_CatalogRule_Model_Rule_Condition_Product

Overrides

Mage_Rule_Model_Condition_Abstract::loadArray()
public boolean
# validate( Varien_Object $object )

Validate product attrbute value for condition

Validate product attrbute value for condition

Parameters

$object
Varien_Object
$object

Returns

boolean

Overrides

Mage_Rule_Model_Condition_Abstract::validate()
public string
# getOperatorForValidate( )

Correct '==' and '!=' operators Categories can't be equal because product is included categories selected by administrator and in their parents

Correct '==' and '!=' operators Categories can't be equal because product is included categories selected by administrator and in their parents

Returns

string

Overrides

Mage_Rule_Model_Condition_Abstract::getOperatorForValidate()
Methods inherited from Mage_Rule_Model_Condition_Abstract
__construct(), _compareValues(), asArray(), asHtml(), asHtmlRecursive(), asString(), asStringRecursive(), asXml(), getAddLinkHtml(), getAttributeElementHtml(), getAttributeName(), getAttributeOptions(), getAttributeSelectOptions(), getChooserContainerHtml(), getDefaultOperatorOptions(), getForm(), getNewChildName(), getNewChildSelectOptions(), getOperatorElement(), getOperatorElementHtml(), getOperatorName(), getOperatorSelectOptions(), getRemoveLinkHtml(), getTypeElement(), getTypeElementHtml(), getValue(), getValueElementHtml(), getValueElementRenderer(), getValueName(), getValueParsed(), isArrayOperatorType(), loadOperatorOptions(), loadValueOptions(), loadXml(), validateAttribute()
Properties summary
protected array $_entityAttributeValues null
#

All attribute values as array in form: array(
[entity_id1] => array(
[store_id1] => store_value1,
[store_id2] => store_value2,
...
[store_idn] => store_valuen
),
... )

All attribute values as array in form: array( [entity_id1] => array( [store_id1] => store_value1, [store_id2] => store_value2, ... [store_idn] => store_valuen ), ... )

Will be set only for not global scope attribute

protected string $_isUsedForRuleProperty 'is_used_for_promo_rules'
#

Attribute data key that indicates whether it should be used for rules

Attribute data key that indicates whether it should be used for rules

Properties inherited from Mage_Rule_Model_Condition_Abstract
$_arrayInputTypes, $_defaultOperatorInputByType, $_defaultOperatorOptions, $_inputType
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0