Public Member Functions | |
toOptionArray () | |
Protected Attributes | |
$_options = null |
Definition at line 28 of file Identity.php.
toOptionArray | ( | ) |
Definition at line 31 of file Identity.php.
00032 { 00033 if (is_null($this->_options)) { 00034 $this->_options = array(); 00035 $config = Mage::getSingleton('adminhtml/config')->getSection('trans_email')->groups->children(); 00036 foreach ($config as $node) { 00037 $nodeName = $node->getName(); 00038 $label = (string) $node->label; 00039 $sortOrder = (int) $node->sort_order; 00040 $this->_options[$sortOrder] = array( 00041 'value' => preg_replace('#^ident_(.*)$#', '$1', $nodeName), 00042 'label' => Mage::helper('adminhtml')->__($label) 00043 ); 00044 } 00045 ksort($this->_options); 00046 } 00047 00048 return $this->_options; 00049 }
$_options = null [protected] |
Definition at line 30 of file Identity.php.