Public Member Functions | |
getRowUrl ($row) | |
getGridUrl () | |
Protected Member Functions | |
_construct () | |
_prepareCollection () | |
_prepareColumns () | |
_prepareMassaction () |
Definition at line 34 of file Grid.php.
_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 36 of file Grid.php.
00037 { 00038 $this->setId('packagesGrid'); 00039 $this->setEmptyText(Mage::helper('adminhtml')->__('No Extensions Found')); 00040 $this->setUseAjax(true); 00041 $this->setSaveParametersInSession(true); 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::getModel('adminhtml/extension_remote_collection'); 00047 00048 $this->setCollection($collection); 00049 00050 return parent::_prepareCollection(); 00051 }
_prepareColumns | ( | ) | [protected] |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid.
Definition at line 53 of file Grid.php.
00054 { 00055 $ext = Mage::getModel('adminhtml/extension'); 00056 00057 $this->addColumn('channel', array( 00058 'header'=>Mage::helper('adminhtml')->__('Channel'), 00059 'index'=>'channel', 00060 #'type'=>'options', 00061 #'options'=>$ext->getKnownChannels(), 00062 )); 00063 00064 $this->addColumn('category', array( 00065 'header'=>Mage::helper('adminhtml')->__('Category'), 00066 'index'=>'category', 00067 )); 00068 00069 $this->addColumn('name', array( 00070 'header'=>Mage::helper('adminhtml')->__('Extension Name'), 00071 'index'=>'name', 00072 )); 00073 00074 $this->addColumn('summary', array( 00075 'header'=>Mage::helper('adminhtml')->__('Summary'), 00076 'index'=>'summary', 00077 )); 00078 00079 $this->addColumn('remote_version', array( 00080 'header'=>Mage::helper('adminhtml')->__('Available Version'), 00081 'index'=>'remote_version', 00082 'type'=>'range', 00083 'width'=>'140px', 00084 )); 00085 00086 $this->addColumn('local_version', array( 00087 'header'=>Mage::helper('adminhtml')->__('Installed Version'), 00088 'index'=>'local_version', 00089 'type'=>'range', 00090 'width'=>'140px', 00091 )); 00092 /* 00093 $this->addColumn('action', 00094 array( 00095 'header'=>Mage::helper('adminhtml')->__('Action'), 00096 'index'=>'template_id', 00097 'sortable'=>false, 00098 'filter' => false, 00099 'width' => '170px', 00100 'renderer' => 'adminhtml/extensions_remote_grid_renderer_action' 00101 )); 00102 00103 $this->addColumn('stability', array( 00104 'header'=>Mage::helper('adminhtml')->__('Stability'), 00105 'index'=>'stability', 00106 'type'=>'options', 00107 'options'=>$ext->getStabilityOptions(), 00108 )); 00109 00110 */ 00111 return $this; 00112 }
_prepareMassaction | ( | ) | [protected] |
Prepare grid massaction actions
Reimplemented from Mage_Adminhtml_Block_Widget_Grid.
Definition at line 114 of file Grid.php.
00115 { 00116 return $this; 00117 00118 $this->setMassactionIdField('id'); 00119 $this->getMassactionBlock()->setFormFieldName('package'); 00120 00121 $this->getMassactionBlock()->addItem('install', array( 00122 'label'=> $this->__('Install'), 00123 'url' => $this->getUrl('*/*/massInstall'), 00124 'confirm' => $this->__('Are you sure you wish to INSTALL all selected packages?') 00125 )); 00126 00127 $this->getMassactionBlock()->addItem('upgrade', array( 00128 'label'=> $this->__('Upgrade'), 00129 'url' => $this->getUrl('*/*/massUpgrade'), 00130 'confirm' => $this->__('Are you sure you wish to UPGRADE all selected packages?') 00131 )); 00132 00133 return $this; 00134 }
getGridUrl | ( | ) |
getRowUrl | ( | $ | row | ) |
Definition at line 136 of file Grid.php.
00137 { 00138 $url = Mage::getModel('adminhtml/url'); 00139 $url->setQueryParam('id', $row->getId()); 00140 return $url->getUrl('*/*/edit'); 00141 }