Mage_Adminhtml_Model_System_Config_Source_Email_Template Class Reference

Inheritance diagram for Mage_Adminhtml_Model_System_Config_Source_Email_Template:

Varien_Object

List of all members.

Public Member Functions

 toOptionArray ()


Detailed Description

Definition at line 35 of file Template.php.


Member Function Documentation

toOptionArray (  ) 

Definition at line 38 of file Template.php.

00039     {
00040         if(!$collection = Mage::registry('config_system_email_template')) {
00041             $collection = Mage::getResourceModel('core/email_template_collection')
00042                 ->load();
00043 
00044             Mage::register('config_system_email_template', $collection);
00045         }
00046         $options = $collection->toOptionArray();
00047         array_unshift(
00048             $options,
00049             array(
00050                 'value'=> str_replace('/', '_', $this->getPath()),
00051                 'label' => Mage::helper('adminhtml')->__('Default Template from Locale')
00052             )
00053         );
00054         return $options;
00055     }


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