Mage_Adminhtml_Model_System_Config_Source_Email_Identity Class Reference

List of all members.

Public Member Functions

 toOptionArray ()

Protected Attributes

 $_options = null


Detailed Description

Definition at line 28 of file Identity.php.


Member Function Documentation

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     }


Member Data Documentation

$_options = null [protected]

Definition at line 30 of file Identity.php.


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

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