Class Mage_Rule_Model_Condition_Abstract

Description

Implements interfaces:

Abstract class for quote rule condition

  • abstract:

Located in /Rule/Model/Condition/Abstract.php (line 32)

Varien_Object
   |
   --Mage_Rule_Model_Condition_Abstract
Direct descendents
Variable Summary
Method Summary
Mage_Rule_Model_Condition_Abstract __construct ()
void asArray ([ $arrAttributes = array()])
void asHtml ()
void asHtmlRecursive ()
void asString ([ $format = ''])
void asStringRecursive ([ $level = 0])
void asXml ()
void getAddLinkHtml ()
void getForm ()
string getInputType ()
void getNewChildName ()
Varien_Data_Form_Element_Select getOperatorElement ()
void getOperatorName ()
void getTypeElement ()
void getValue ()
void getValueElement ()
void getValueName ()
void getValueParsed ()
void loadArray ( $arr)
void loadXml ( $xml)
void validate ( $object)
bool validateAttribute (mixed $validatedValue)
Variables
array $_defaultOperatorInputByType = null (line 53)

Default combinations of operator options, depending on input type

  • access: protected
array $_defaultOperatorOptions = null (line 47)

Default values for possible operator options

  • access: protected
string $_inputType = null (line 41)

Defines which operators will be available for this condition

  • access: protected
Methods
asArray (line 120)
  • access: public
void asArray ([ $arrAttributes = array()])
  • array $arrAttributes

Redefined in descendants as:
asHtmlRecursive (line 334)
  • access: public
void asHtmlRecursive ()

Redefined in descendants as:
asString (line 479)
  • access: public
void asString ([ $format = ''])
  • $format

Redefined in descendants as:
asStringRecursive (line 485)
  • access: public
void asStringRecursive ([ $level = 0])
  • $level

Redefined in descendants as:
asXml (line 132)
  • access: public
void asXml ()

Redefined in descendants as:
getAddLinkHtml (line 455)
  • access: public
void getAddLinkHtml ()
getAttributeElement (line 355)
  • access: public
void getAttributeElement ()

Redefined in descendants as:
getAttributeElementHtml (line 371)
  • access: public
void getAttributeElementHtml ()
getAttributeName (line 184)
  • access: public
void getAttributeName ()
getAttributeOptions (line 170)
  • access: public
void getAttributeOptions ()
getAttributeSelectOptions (line 175)
  • access: public
void getAttributeSelectOptions ()
getChooserContainerHtml (line 469)
  • access: public
void getChooserContainerHtml ()
getDefaultOperatorInputByType (line 74)

Default operator input by type map getter

  • access: public
array getDefaultOperatorInputByType ()
getDefaultOperatorOptions (line 96)

Default operator options getter Provides all possible operator options

  • access: public
array getDefaultOperatorOptions ()
getForm (line 115)
  • access: public
void getForm ()
getInputType (line 203)

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

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

  • access: public
string getInputType ()

Redefined in descendants as:
getNewChildName (line 318)
  • access: public
void getNewChildName ()
getOperatorElement (line 382)

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

  • access: public
Varien_Data_Form_Element_Select getOperatorElement ()
getOperatorElementHtml (line 405)
  • access: public
void getOperatorElementHtml ()
getOperatorName (line 228)
  • access: public
void getOperatorName ()
getOperatorSelectOptions (line 211)
  • access: public
void getOperatorSelectOptions ()
getRemoveLinkHtml (line 462)
  • access: public
void getRemoveLinkHtml ()
getTypeElement (line 340)
  • access: public
void getTypeElement ()
getTypeElementHtml (line 350)
  • access: public
void getTypeElementHtml ()
getValue (line 265)
  • access: public
void getValue ()
getValueElement (line 429)
  • access: public
void getValueElement ()

Redefined in descendants as:
getValueElementHtml (line 450)
  • access: public
void getValueElementHtml ()
getValueElementRenderer (line 421)
  • access: public
void getValueElementRenderer ()
getValueElementType (line 416)

Value element type will define renderer for condition value element

  • see: Varien_Data_Form_Element
  • access: public
string getValueElementType ()

Redefined in descendants as:
getValueName (line 276)
  • access: public
void getValueName ()
getValueParsed (line 252)
  • access: public
void getValueParsed ()
getValueSelectOptions (line 243)
  • access: public
void getValueSelectOptions ()

Redefined in descendants as:
loadOperatorOptions (line 189)
  • access: public
void loadOperatorOptions ()

Redefined in descendants as:
loadXml (line 155)
  • access: public
void loadXml ( $xml)
  • $xml

Redefined in descendants as:
validate (line 593)
  • access: public
void validate ( $object)
  • Varien_Object $object

Redefined in descendants as:
validateAttribute (line 497)

Validate product attrbute value for condition

  • access: public
bool validateAttribute (mixed $validatedValue)
  • mixed $validatedValue: product attribute value

Documentation generated on Fri, 11 Feb 2011 16:54:47 +0200 by phpDocumentor 1.4.3