Mage_Adminhtml_Block_System_Convert_Profile_Edit_Tab_History Class Reference

Inheritance diagram for Mage_Adminhtml_Block_System_Convert_Profile_Edit_Tab_History:

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

 __construct ()
 getGridUrl ()

Protected Member Functions

 _prepareCollection ()
 _prepareColumns ()


Detailed Description

Definition at line 34 of file History.php.


Constructor & Destructor Documentation

__construct (  ) 

Constructor

By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes

Reimplemented from Varien_Object.

Definition at line 36 of file History.php.

00037     {
00038         parent::__construct();
00039         $this->setId('history_grid');
00040         $this->setDefaultSort('performed_at', 'desc');
00041         $this->setUseAjax(true);
00042     }


Member Function Documentation

_prepareCollection (  )  [protected]

Prepare grid collection object

Returns:
this

Reimplemented from Mage_Adminhtml_Block_Widget_Grid.

Definition at line 44 of file History.php.

00045     {
00046         $collection = Mage::getResourceModel('dataflow/profile_history_collection')
00047             ->joinAdminUser()
00048             ->addFieldToFilter('profile_id', Mage::registry('current_convert_profile')->getId());
00049         $this->setCollection($collection);
00050         return parent::_prepareCollection();
00051     }

_prepareColumns (  )  [protected]

Reimplemented from Mage_Adminhtml_Block_Widget_Grid.

Definition at line 53 of file History.php.

00054     {
00055         $this->addColumn('action_code', array(
00056             'header'    => Mage::helper('adminhtml')->__('Profile Action'),
00057             'index'     => 'action_code',
00058             'filter'    => 'adminhtml/system_convert_profile_edit_filter_action',
00059             'renderer'  => 'adminhtml/system_convert_profile_edit_renderer_action',
00060         ));
00061 
00062         $this->addColumn('performed_at', array(
00063             'header'    => Mage::helper('adminhtml')->__('Performed At'),
00064             'type'      => 'datetime',
00065             'index'     => 'performed_at',
00066             'width'     => '150px',
00067         ));
00068 
00069         $this->addColumn('firstname', array(
00070             'header'    => Mage::helper('adminhtml')->__('Firstname'),
00071             'index'     => 'firstname',
00072         ));
00073 
00074         $this->addColumn('lastname', array(
00075             'header'    => Mage::helper('adminhtml')->__('Lastname'),
00076             'index'     => 'lastname',
00077         ));
00078 
00079         return parent::_prepareColumns();
00080     }

getGridUrl (  ) 

Reimplemented from Mage_Adminhtml_Block_Widget_Grid.

Definition at line 82 of file History.php.

00083     {
00084         return $this->getUrl('*/*/history', array('_current' => true));
00085     }


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