
Public Member Functions | |
| load () | |
| toOptionArray () | |
Definition at line 27 of file Collection.php.
| load | ( | ) |
Definition at line 29 of file Collection.php.
00030 { 00031 $packages = $this->getData('themes'); 00032 if (is_null($packages)) { 00033 $packages = Mage::getModel('core/design_package')->getThemeList(); 00034 $this->setData('themes', $packages); 00035 } 00036 00037 return $this; 00038 }
| toOptionArray | ( | ) |
Reimplemented from Varien_Data_Collection.
Definition at line 40 of file Collection.php.
00041 { 00042 $options = array(); 00043 $packages = $this->getData('themes'); 00044 foreach ($packages as $package) { 00045 $options[] = array('value'=>$package, 'label'=>$package); 00046 } 00047 array_unshift($options, array('value'=>'', 'label'=>'')); 00048 00049 return $options; 00050 }
1.5.8