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('neq'=>'')); 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('direction', array( 00066 'header' => Mage::helper('adminhtml')->__('Profile Direction'), 00067 'index' => 'direction', 00068 'type' => 'options', 00069 'options' => array('import'=>'Import', 'export'=>'Export'), 00070 'width' => '120px', 00071 )); 00072 $this->addColumn('entity_type', array( 00073 'header' => Mage::helper('adminhtml')->__('Entity Type'), 00074 'index' => 'entity_type', 00075 'type' => 'options', 00076 'options' => array('product'=>'Products', 'customer'=>'Customers'), 00077 'width' => '120px', 00078 )); 00079 00080 $this->addColumn('store_id', array( 00081 'header' => Mage::helper('adminhtml')->__('Store'), 00082 'type' => 'options', 00083 'align' => 'center', 00084 'index' => 'store_id', 00085 'type' => 'store', 00086 'width' => '200px', 00087 )); 00088 00089 $this->addColumn('created_at', array( 00090 'header' => Mage::helper('adminhtml')->__('Created At'), 00091 'type' => 'datetime', 00092 'align' => 'center', 00093 'index' => 'created_at', 00094 )); 00095 $this->addColumn('updated_at', array( 00096 'header' => Mage::helper('adminhtml')->__('Updated At'), 00097 'type' => 'datetime', 00098 'align' => 'center', 00099 'index' => 'updated_at', 00100 )); 00101 00102 $this->addColumn('action', array( 00103 'header' => Mage::helper('adminhtml')->__('Action'), 00104 'width' => '60px', 00105 'align' => 'center', 00106 'sortable' => false, 00107 'filter' => false, 00108 'type' => 'action', 00109 'actions' => array( 00110 array( 00111 'url' => $this->getUrl('*/*/edit') . 'id/$profile_id', 00112 'caption' => Mage::helper('adminhtml')->__('Edit') 00113 ) 00114 ) 00115 )); 00116 00117 // $this->addColumn('action', array( 00118 // 'header' =>Mage::helper('adminhtml')->__('Action'), 00119 // 'width' =>'60px', 00120 // 'sortable' =>false, 00121 // 'filter' => false, 00122 // 'type' => 'action', 00123 // 'actions' => array( 00124 // array( 00125 // 'url' => $this->getUrl('*/*/run').'id/$profile_id', 00126 // 'caption' => Mage::helper('adminhtml')->__('Run in popup'), 00127 // 'target' => '_blank', 00128 // ), 00129 // ) 00130 // )); 00131 00132 return parent::_prepareColumns(); 00133 }
getRowUrl | ( | $ | row | ) |