Mage_Core_Model_Design_Source_Apply Class Reference

Inheritance diagram for Mage_Core_Model_Design_Source_Apply:

Mage_Eav_Model_Entity_Attribute_Source_Abstract Mage_Eav_Model_Entity_Attribute_Source_Interface

List of all members.

Public Member Functions

 getAllOptions ()


Detailed Description

Definition at line 28 of file Apply.php.


Member Function Documentation

getAllOptions (  ) 

Retrieve All options

Returns:
array

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     }


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

Generated on Sat Jul 4 17:23:57 2009 for Magento by  doxygen 1.5.8