Public Member Functions | |
getOptions () | |
toOptionArray () | |
Protected Attributes | |
$_options = null |
Definition at line 34 of file Layout.php.
getOptions | ( | ) |
Retrieve page layout options
Definition at line 49 of file Layout.php.
00050 { 00051 if ($this->_options === null) { 00052 $this->_options = array(); 00053 foreach (Mage::getSingleton('page/config')->getPageLayouts() as $layout) { 00054 $this->_options[$layout->getCode()] = $layout->getLabel(); 00055 } 00056 } 00057 00058 return $this->_options; 00059 }
toOptionArray | ( | ) |
Retrieve page layout options array
Definition at line 66 of file Layout.php.
00067 { 00068 $options = array(); 00069 00070 foreach ($this->getOptions() as $value => $label) { 00071 $options[] = array( 00072 'label' => $label, 00073 'value' => $value 00074 ); 00075 } 00076 00077 return $options; 00078 }
$_options = null [protected] |
Definition at line 42 of file Layout.php.