Mage_Adminhtml_Model_System_Config_Source_Website Class Reference

List of all members.

Public Member Functions

 toOptionArray ()

Protected Attributes

 $_options


Detailed Description

Definition at line 28 of file Website.php.


Member Function Documentation

toOptionArray (  ) 

Definition at line 32 of file Website.php.

00033     {
00034         if (!$this->_options) {
00035             $this->_options = array();
00036             foreach (Mage::app()->getWebsites() as $website) {
00037                 $id = $website->getId();
00038                 $name = $website->getName();
00039                 if ($id!=0) {
00040                     $this->_options[] = array('value'=>$id, 'label'=>$name);
00041                 }
00042             }
00043         }
00044         return $this->_options;
00045     }


Member Data Documentation

$_options [protected]

Definition at line 30 of file Website.php.


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

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