Public Member Functions | |
getAllOptions () |
Definition at line 34 of file Layout.php.
getAllOptions | ( | ) |
Retrieve All options
Implements Mage_Eav_Model_Entity_Attribute_Source_Interface.
Definition at line 36 of file Layout.php.
00037 { 00038 if (!$this->_options) { 00039 $layouts = array(); 00040 foreach (Mage::getConfig()->getNode('global/cms/layouts')->children() as $layoutName=>$layoutConfig) { 00041 $this->_options[] = array( 00042 'value'=>$layoutName, 00043 'label'=>(string)$layoutConfig->label 00044 ); 00045 } 00046 array_unshift($this->_options, array('value'=>'', 'label'=>Mage::helper('catalog')->__('No layout updates'))); 00047 } 00048 return $this->_options; 00049 }