Public Member Functions | |
__construct () | |
getRowUrl ($row) | |
Protected Member Functions | |
_prepareCollection () | |
_prepareColumns () |
Definition at line 34 of file Grid.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 37 of file Grid.php.
00038 { 00039 parent::__construct(); 00040 $this->setId('convertProfileGrid'); 00041 $this->setDefaultSort('profile_id'); 00042 }
_prepareCollection | ( | ) | [protected] |
Prepare grid collection object
Reimplemented from Mage_Adminhtml_Block_Widget_Grid.
Definition at line 44 of file Grid.php.
00045 { 00046 $collection = Mage::getResourceModel('dataflow/profile_collection') 00047 ->addFieldToFilter('entity_type', array('eq'=>'')); 00048 00049 $this->setCollection($collection); 00050 00051 return parent::_prepareCollection(); 00052 }
_prepareColumns | ( | ) | [protected] |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid.
Definition at line 54 of file Grid.php.
00055 { 00056 $this->addColumn('profile_id', array( 00057 'header' => Mage::helper('adminhtml')->__('ID'), 00058 'width' => '50px', 00059 'index' => 'profile_id', 00060 )); 00061 $this->addColumn( 'name', array( 00062 'header' => Mage::helper('adminhtml')->__('Profile Name'), 00063 'index' => 'name', 00064 )); 00065 $this->addColumn('created_at', array( 00066 'header' => Mage::helper('adminhtml')->__('Created At'), 00067 'type' => 'date', 00068 'align' => 'center', 00069 'index' => 'created_at', 00070 )); 00071 $this->addColumn('updated_at', array( 00072 'header' => Mage::helper('adminhtml')->__('Updated At'), 00073 'type' => 'date', 00074 'align' => 'center', 00075 'index' => 'updated_at', 00076 )); 00077 00078 $this->addColumn('action', array( 00079 'header' => Mage::helper('adminhtml')->__('Action'), 00080 'width' => '60px', 00081 'align' => 'center', 00082 'sortable' => false, 00083 'filter' => false, 00084 'type' => 'action', 00085 'actions' => array( 00086 array( 00087 'url' => $this->getUrl('*/*/edit') . 'id/$profile_id', 00088 'caption' => Mage::helper('adminhtml')->__('Edit') 00089 ) 00090 ) 00091 )); 00092 00093 // $this->addColumn('action', array( 00094 // 'header' =>Mage::helper('adminhtml')->__('Action'), 00095 // 'width' =>'60px', 00096 // 'sortable' =>false, 00097 // 'filter' => false, 00098 // 'type' => 'action', 00099 // 'actions' => array( 00100 // array( 00101 // 'url' => $this->getUrl('*/*/run').'id/$profile_id', 00102 // 'caption' => Mage::helper('adminhtml')->__('Run in popup'), 00103 // 'target' => '_blank', 00104 // ), 00105 // ) 00106 // )); 00107 00108 return parent::_prepareColumns(); 00109 }
getRowUrl | ( | $ | row | ) |