Mage_Core_Model_Mysql4_Design_Package_Collection Class Reference

Inheritance diagram for Mage_Core_Model_Mysql4_Design_Package_Collection:

Varien_Object

List of all members.

Public Member Functions

 load ()
 toOptionArray ()


Detailed Description

Definition at line 28 of file Collection.php.


Member Function Documentation

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     }


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

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