Mage_Adminhtml_Block_System_Email_Template_Grid Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Email_Template_Grid:

Mage_Adminhtml_Block_Widget_Grid Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 getRowUrl ($row)

Protected Member Functions

 _construct ()
 _prepareCollection ()
 _prepareColumns ()


Detailed Description

Definition at line 34 of file Grid.php.


Member Function Documentation

_construct (  )  [protected]

Internal constructor, that is called from real constructor

Please override this one instead of overriding real __construct constructor

Please override this one instead of overriding real __construct constructor

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 37 of file Grid.php.

00038     {
00039         $this->setEmptyText(Mage::helper('adminhtml')->__('No Templates Found'));
00040     }

_prepareCollection (  )  [protected]

Prepare grid collection object

Returns:
this

Reimplemented from Mage_Adminhtml_Block_Widget_Grid.

Definition at line 42 of file Grid.php.

00043     {
00044         $collection = Mage::getResourceSingleton('core/email_template_collection');
00045 
00046         $this->setCollection($collection);
00047 
00048         return parent::_prepareCollection();
00049     }

_prepareColumns (  )  [protected]

Reimplemented from Mage_Adminhtml_Block_Widget_Grid.

Definition at line 51 of file Grid.php.

00052     {
00053         $this->addColumn('template_id',
00054             array(
00055                   'header'=>Mage::helper('adminhtml')->__('ID'),
00056                   'index'=>'template_id'
00057             )
00058         );
00059 
00060         $this->addColumn('code',
00061             array(
00062                 'header'=>Mage::helper('adminhtml')->__('Template Name'),
00063                 'index'=>'template_code'
00064         ));
00065 
00066         $this->addColumn('added_at',
00067             array(
00068                 'header'=>Mage::helper('adminhtml')->__('Date Added'),
00069                 'index'=>'added_at',
00070                 'gmtoffset' => true,
00071                 'type'=>'datetime'
00072         ));
00073 
00074         $this->addColumn('modified_at',
00075             array(
00076                 'header'=>Mage::helper('adminhtml')->__('Date Updated'),
00077                 'index'=>'modified_at',
00078                 'gmtoffset' => true,
00079                 'type'=>'datetime'
00080         ));
00081 
00082         $this->addColumn('subject',
00083             array(
00084                 'header'=>Mage::helper('adminhtml')->__('Subject'),
00085                 'index'=>'template_subject'
00086         ));
00087         /*
00088         $this->addColumn('sender',
00089             array(
00090                 'header'=>Mage::helper('adminhtml')->__('Sender'),
00091                 'index'=>'template_sender_email',
00092                 'renderer' => 'adminhtml/system_email_template_grid_renderer_sender'
00093         ));
00094         */
00095         $this->addColumn('type',
00096             array(
00097                 'header'=>Mage::helper('adminhtml')->__('Template Type'),
00098                 'index'=>'template_type',
00099                 'filter' => 'adminhtml/system_email_template_grid_filter_type',
00100                 'renderer' => 'adminhtml/system_email_template_grid_renderer_type'
00101         ));
00102 
00103         $this->addColumn('action',
00104             array(
00105                 'header'    => Mage::helper('adminhtml')->__('Action'),
00106                 'index'     => 'template_id',
00107                 'sortable'  => false,
00108                 'filter'    => false,
00109                 'width'     => '100px',
00110                 'renderer'  => 'adminhtml/system_email_template_grid_renderer_action'
00111         ));
00112         return $this;
00113     }

getRowUrl ( row  ) 

Definition at line 115 of file Grid.php.

00116     {
00117         return $this->getUrl('*/*/edit', array('id'=>$row->getId()));
00118     }


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

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