Public Member Functions | |
toOptionArray () | |
Public Attributes | |
const | BUNDLE_OPTIONS_TYPES_PATH = 'global/catalog/product/options/bundle/types' |
Definition at line 34 of file Type.php.
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 }
const BUNDLE_OPTIONS_TYPES_PATH = 'global/catalog/product/options/bundle/types' |