Public Member Functions | |
__construct () | |
getGridUrl () | |
Protected Member Functions | |
_prepareCollection () | |
_prepareColumns () |
Definition at line 34 of file History.php.
__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 }
_prepareCollection | ( | ) | [protected] |
Prepare grid collection object
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 | ( | ) |