Public Member Functions | |
getAllOptions () |
Definition at line 28 of file Apply.php.
getAllOptions | ( | ) |
Retrieve All options
Implements Mage_Eav_Model_Entity_Attribute_Source_Interface.
Definition at line 30 of file Apply.php.
00031 { 00032 if (!$this->_options) { 00033 $optionArray = array( 00034 1 => Mage::helper('core')->__('This category and all its child elements'), 00035 3 => Mage::helper('core')->__('This category and its products only'), 00036 4 => Mage::helper('core')->__('This category and its child categories only'), 00037 2 => Mage::helper('core')->__('This category only') 00038 ); 00039 00040 foreach ($optionArray as $k=>$label) { 00041 $this->_options[] = array('value'=>$k, 'label'=>$label); 00042 } 00043 } 00044 00045 return $this->_options; 00046 }