Mage_Bundle_Model_Source_Option_Type Class Reference

List of all members.

Public Member Functions

 toOptionArray ()

Public Attributes

const BUNDLE_OPTIONS_TYPES_PATH = 'global/catalog/product/options/bundle/types'


Detailed Description

Definition at line 34 of file Type.php.


Member Function Documentation

toOptionArray (  ) 

Definition at line 38 of file Type.php.

00039     {
00040         $types = array();
00041 
00042         foreach (Mage::getConfig()->getNode(self::BUNDLE_OPTIONS_TYPES_PATH)->children() as $type) {
00043             $labelPath = self::BUNDLE_OPTIONS_TYPES_PATH . '/' . $type->getName() . '/label';
00044             $types[] = array(
00045                 'label' => (string) Mage::getConfig()->getNode($labelPath),
00046                 'value' => $type->getName()
00047             );
00048         }
00049 
00050         return $types;
00051     }


Member Data Documentation

const BUNDLE_OPTIONS_TYPES_PATH = 'global/catalog/product/options/bundle/types'

Definition at line 36 of file Type.php.


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

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