Mage_Page_Model_Source_Layout Class Reference

List of all members.

Public Member Functions

 getOptions ()
 toOptionArray ()

Protected Attributes

 $_options = null


Detailed Description

Definition at line 34 of file Layout.php.


Member Function Documentation

getOptions (  ) 

Retrieve page layout options

Returns:
array

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

Returns:
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     }


Member Data Documentation

$_options = null [protected]

Definition at line 42 of file Layout.php.


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

Generated on Sat Jul 4 17:24:30 2009 for Magento by  doxygen 1.5.8