Class Mage_CatalogRule_Model_Rule_Condition_Product

Description

Magento

NOTICE OF LICENSE

This source file is subject to the Open Software License (OSL 3.0) that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://opensource.org/licenses/osl-3.0.php If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@magentocommerce.com so we can send you a copy immediately.

DISCLAIMER

Do not edit or add to this file if you wish to upgrade Magento to newer versions in the future. If you wish to customize Magento for your needs please refer to http://www.magentocommerce.com for more information.

Located in /CatalogRule/Model/Rule/Condition/Product.php (line 28)

Varien_Object
   |
   --Mage_Rule_Model_Condition_Abstract
      |
      --Mage_CatalogRule_Model_Rule_Condition_Product
Direct descendents
Variable Summary
Method Summary
Variables
array $_entityAttributeValues = null (line 46)

All attribute values as array in form:

array( [entity_id_1] => array( [store_id_1] => store_value_1, [store_id_2] => store_value_2, ... [store_id_n] => store_value_n ), ... )

Will be set only for not global scope attribute

  • access: protected
string $_isUsedForRuleProperty = 'is_used_for_promo_rules' (line 53)

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

  • access: protected

Inherited Variables

Inherited from Mage_Rule_Model_Condition_Abstract

Mage_Rule_Model_Condition_Abstract::$_defaultOperatorInputByType
Mage_Rule_Model_Condition_Abstract::$_defaultOperatorOptions
Mage_Rule_Model_Condition_Abstract::$_inputType
Methods
collectValidatedAttributes (line 234)

Collect validated attributes

  • access: public
getAttributeElement (line 221)

Retrieve attribute element

  • access: public
Varien_Form_Element_Abstract getAttributeElement ()

Redefinition of:
Mage_Rule_Model_Condition_Abstract::getAttributeElement()
getAttributeObject (line 60)

Retrieve attribute object

  • access: public
getExplicitApply (line 355)

Retrieve Explicit Apply

  • access: public
bool getExplicitApply ()
getInputType (line 256)

Retrieve input type

  • access: public
string getInputType ()

Redefinition of:
Mage_Rule_Model_Condition_Abstract::getInputType()
This value will define which operators will be available for this condition.
getValueAfterElementHtml (line 200)

Retrieve after element HTML

  • access: public
string getValueAfterElementHtml ()
getValueElement (line 316)

Retrieve value element

  • access: public
Varien_Data_Form_Element_Abstract getValueElement ()

Redefinition of:
Mage_Rule_Model_Condition_Abstract::getValueElement()
getValueElementChooserUrl (line 335)

Retrieve value element chooser URL

  • access: public
string getValueElementChooserUrl ()
getValueElementType (line 287)

Retrieve value element type

  • access: public
string getValueElementType ()

Redefinition of:
Mage_Rule_Model_Condition_Abstract::getValueElementType()
Value element type will define renderer for condition value element
getValueOption (line 178)

Retrieve value by option

  • access: public
string getValueOption ([mixed $option = null])
  • mixed $option
getValueSelectOptions (line 189)

Retrieve select option values

  • access: public
array getValueSelectOptions ()

Redefinition of:
Mage_Rule_Model_Condition_Abstract::getValueSelectOptions()
loadArray (line 376)

Load array

  • access: public
  • array $arr

Redefinition of:
Mage_Rule_Model_Condition_Abstract::loadArray()
loadAttributeOptions (line 90)

Load attribute options

  • access: public

Redefinition of:
Mage_Rule_Model_Condition_Abstract::loadAttributeOptions()
validate (line 411)

Validate product attrbute value for condition

  • access: public
bool validate ( $object)
  • Varien_Object $object

Redefinition of:
Mage_Rule_Model_Condition_Abstract::validate()

Redefined in descendants as:
_addSpecialAttributes (line 79)

Add special attributes

  • access: protected
void _addSpecialAttributes ( &$attributes, array $attributes)
  • array $attributes
  • array &$attributes

Redefined in descendants as:
_prepareValueOptions (line 121)

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, ...),

  • access: protected

Inherited Methods

Inherited From Mage_Rule_Model_Condition_Abstract

Mage_Rule_Model_Condition_Abstract::__construct()
Mage_Rule_Model_Condition_Abstract::asArray()
Mage_Rule_Model_Condition_Abstract::asHtml()
Mage_Rule_Model_Condition_Abstract::asHtmlRecursive()
Mage_Rule_Model_Condition_Abstract::asString()
Mage_Rule_Model_Condition_Abstract::asStringRecursive()
Mage_Rule_Model_Condition_Abstract::asXml()
Mage_Rule_Model_Condition_Abstract::getAddLinkHtml()
Mage_Rule_Model_Condition_Abstract::getAttributeElement()
Mage_Rule_Model_Condition_Abstract::getAttributeElementHtml()
Mage_Rule_Model_Condition_Abstract::getAttributeName()
Mage_Rule_Model_Condition_Abstract::getAttributeOptions()
Mage_Rule_Model_Condition_Abstract::getAttributeSelectOptions()
Mage_Rule_Model_Condition_Abstract::getChooserContainerHtml()
Mage_Rule_Model_Condition_Abstract::getDefaultOperatorInputByType()
Mage_Rule_Model_Condition_Abstract::getDefaultOperatorOptions()
Mage_Rule_Model_Condition_Abstract::getForm()
Mage_Rule_Model_Condition_Abstract::getInputType()
Mage_Rule_Model_Condition_Abstract::getNewChildName()
Mage_Rule_Model_Condition_Abstract::getNewChildSelectOptions()
Mage_Rule_Model_Condition_Abstract::getOperatorElement()
Mage_Rule_Model_Condition_Abstract::getOperatorElementHtml()
Mage_Rule_Model_Condition_Abstract::getOperatorName()
Mage_Rule_Model_Condition_Abstract::getOperatorSelectOptions()
Mage_Rule_Model_Condition_Abstract::getRemoveLinkHtml()
Mage_Rule_Model_Condition_Abstract::getTypeElement()
Mage_Rule_Model_Condition_Abstract::getTypeElementHtml()
Mage_Rule_Model_Condition_Abstract::getValue()
Mage_Rule_Model_Condition_Abstract::getValueElement()
Mage_Rule_Model_Condition_Abstract::getValueElementHtml()
Mage_Rule_Model_Condition_Abstract::getValueElementRenderer()
Mage_Rule_Model_Condition_Abstract::getValueElementType()
Mage_Rule_Model_Condition_Abstract::getValueName()
Mage_Rule_Model_Condition_Abstract::getValueParsed()
Mage_Rule_Model_Condition_Abstract::getValueSelectOptions()
Mage_Rule_Model_Condition_Abstract::loadArray()
Mage_Rule_Model_Condition_Abstract::loadAttributeOptions()
Mage_Rule_Model_Condition_Abstract::loadOperatorOptions()
Mage_Rule_Model_Condition_Abstract::loadValueOptions()
Mage_Rule_Model_Condition_Abstract::loadXml()
Mage_Rule_Model_Condition_Abstract::validate()
Mage_Rule_Model_Condition_Abstract::validateAttribute()

Documentation generated on Fri, 11 Feb 2011 17:10:19 +0200 by phpDocumentor 1.4.3