Mage_Core_Model_Mysql4_Design_Theme Class Reference

Inheritance diagram for Mage_Core_Model_Mysql4_Design_Theme:

Varien_Directory_Collection Varien_Data_Collection IFactory

List of all members.

Public Member Functions

 load ()
 toOptionArray ()


Detailed Description

Definition at line 27 of file Collection.php.


Member Function Documentation

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     }


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