本文整理汇总了PHP中Mage_Adminhtml_Block_Widget_Grid::_prepareGrid方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Widget_Grid::_prepareGrid方法的具体用法?PHP Mage_Adminhtml_Block_Widget_Grid::_prepareGrid怎么用?PHP Mage_Adminhtml_Block_Widget_Grid::_prepareGrid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Widget_Grid
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Widget_Grid::_prepareGrid方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _prepareGrid
protected function _prepareGrid()
{
if (!$this->isGridPrepared) {
parent::_prepareGrid();
$this->isGridPrepared = true;
}
return $this;
}
示例2: _prepareGrid
/**
* {@inheritdoc}
*/
protected function _prepareGrid()
{
parent::_prepareGrid();
$referenceValue = $this->getColumn('reference')->getFilter()->getValue();
if (!$referenceValue) {
return Mage::getSingleton('core/session')->setEntityReferenceFilter(null);
}
Mage::getSingleton('core/session')->setEntityReferenceFilter($referenceValue);
return $this;
}
示例3: _prepareGrid
/**
* Prepare grid
*
* @return void
*/
protected function _prepareGrid()
{
$this->setId('customer_cart_grid' . $this->getWebsiteId());
parent::_prepareGrid();
}
示例4: _prepareGrid
/**
* Prepare grid
*
* @return void
*/
protected function _prepareGrid()
{
$this->setId('customer_cart_grid');
parent::_prepareGrid();
}
示例5: _prepareGrid
/**
* Invoke export features for grid
*/
protected function _prepareGrid()
{
$this->addExportType('*/*/exportCsv', Mage::helper('customer')->__('CSV'));
$this->addExportType('*/*/exportMsxml', Mage::helper('customer')->__('Excel XML'));
return parent::_prepareGrid();
}
示例6: _prepareGrid
/**
* @return Xcom_Mapping_Block_Adminhtml_Attribute_Set_Grid
*/
protected function _prepareGrid()
{
parent::_prepareGrid();
$massaction = $this->getColumn('massaction');
if ($massaction) {
$massaction->setData('width', '30');
}
return $this;
}
示例7: _prepareGrid
/**
* Invoke export features for grid
*/
protected function _prepareGrid()
{
$this->addExportType('*/*/exportCsv', Mage::helper('zeon_jobs')->__('CSV'));
return parent::_prepareGrid();
}
示例8: _prepareGrid
protected function _prepareGrid()
{
return parent::_prepareGrid();
// TODO: Change the autogenerated stub
}
示例9: _prepareGrid
/**
* Invoke export features for grid
*/
protected function _prepareGrid()
{
$this->addExportType('*/*/exportCsv', 'CSV');
$this->addExportType('*/*/exportMsxml', 'MSXML');
return parent::_prepareGrid();
}