Public Member Functions | |
toOptionArray () | |
Protected Attributes | |
$_options |
Definition at line 28 of file Website.php.
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 }
$_options [protected] |
Definition at line 30 of file Website.php.