Public Member Functions | |
load () | |
toOptionArray () |
Definition at line 28 of file Collection.php.
load | ( | ) |
Definition at line 30 of file Collection.php.
00031 { 00032 $packages = $this->getData('packages'); 00033 if (is_null($packages)) { 00034 $packages = Mage::getModel('core/design_package')->getPackageList(); 00035 $this->setData('packages', $packages); 00036 } 00037 00038 return $this; 00039 }
toOptionArray | ( | ) |
Definition at line 41 of file Collection.php.
00042 { 00043 $options = array(); 00044 $packages = $this->getData('packages'); 00045 foreach ($packages as $package) { 00046 $options[] = array('value'=>$package, 'label'=>$package); 00047 } 00048 array_unshift($options, array('value'=>'', 'label'=>'')); 00049 00050 return $options; 00051 }