Public Member Functions | |
__construct () | |
getNewChildSelectOptions () |
Definition at line 28 of file Combine.php.
__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 }
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 }