Mage_SalesRule_Model_Rule_Condition_Combine Class Reference

Inheritance diagram for Mage_SalesRule_Model_Rule_Condition_Combine:

Mage_Rule_Model_Condition_Combine Mage_Rule_Model_Condition_Abstract Varien_Object Mage_Rule_Model_Condition_Interface

List of all members.

Public Member Functions

 __construct ()
 getNewChildSelectOptions ()


Detailed Description

Definition at line 28 of file Combine.php.


Constructor & Destructor Documentation

__construct (  ) 

Constructor

By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes

Reimplemented from Mage_Rule_Model_Condition_Combine.

Definition at line 30 of file Combine.php.

00031     {
00032         parent::__construct();
00033         $this->setType('salesrule/rule_condition_combine');
00034     }


Member Function Documentation

getNewChildSelectOptions (  ) 

Reimplemented from Mage_Rule_Model_Condition_Abstract.

Definition at line 36 of file Combine.php.

00037     {
00038         $addressCondition = Mage::getModel('salesrule/rule_condition_address');
00039         $addressAttributes = $addressCondition->loadAttributeOptions()->getAttributeOption();
00040         $attributes = array();
00041         foreach ($addressAttributes as $code=>$label) {
00042             $attributes[] = array('value'=>'salesrule/rule_condition_address|'.$code, 'label'=>$label);
00043         }
00044 
00045         $conditions = parent::getNewChildSelectOptions();
00046         $conditions = array_merge_recursive($conditions, array(
00047             array('value'=>'salesrule/rule_condition_product_found', 'label'=>Mage::helper('salesrule')->__('Product attribute combination')),
00048             array('value'=>'salesrule/rule_condition_product_subselect', 'label'=>Mage::helper('salesrule')->__('Products subselection')),
00049             array('value'=>'salesrule/rule_condition_combine', 'label'=>Mage::helper('salesrule')->__('Conditions combination')),
00050             array('label'=>Mage::helper('salesrule')->__('Cart Attribute'), 'value'=>$attributes),
00051         ));
00052         return $conditions;
00053     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:50 2009 for Magento by  doxygen 1.5.8