本文整理汇总了PHP中Mage_Adminhtml_Block_Dashboard_Grid::_prepareColumns方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Dashboard_Grid::_prepareColumns方法的具体用法?PHP Mage_Adminhtml_Block_Dashboard_Grid::_prepareColumns怎么用?PHP Mage_Adminhtml_Block_Dashboard_Grid::_prepareColumns使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Dashboard_Grid
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Dashboard_Grid::_prepareColumns方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _prepareColumns
protected function _prepareColumns()
{
$this->addColumn('name', array('header' => $this->__('Name'), 'index' => 'name'));
$this->addColumn('email', array('header' => $this->__('Email'), 'index' => 'email'));
$this->addColumn('description', array('header' => $this->__('Description'), 'width' => '150px', 'index' => 'description', 'renderer' => 'Forkel_Grids_Block_Adminhtml_Dashboard_Custom_Renderer_Truncate'));
return parent::_prepareColumns();
}
示例2: _prepareColumns
protected function _prepareColumns()
{
$this->addColumn('name', array('header' => Mage::helper('sales')->__('Product Name'), 'sortable' => false, 'index' => 'product_name'));
$this->addColumn('price', array('header' => Mage::helper('sales')->__('Price'), 'width' => '120px', 'type' => 'currency', 'currency_code' => (string) Mage::app()->getStore((int) $this->getParam('store'))->getBaseCurrencyCode(), 'sortable' => false, 'index' => 'product_price'));
$this->addColumn('ordered_qty', array('header' => Mage::helper('sales')->__('Quantity Ordered'), 'width' => '120px', 'align' => 'right', 'sortable' => false, 'index' => 'qty_ordered', 'type' => 'number'));
$this->setFilterVisibility(false);
$this->setPagerVisibility(false);
return parent::_prepareColumns();
}
示例3: _prepareColumns
protected function _prepareColumns()
{
$this->addColumn('search_query', array('header' => $this->__('Search Term'), 'sortable' => false, 'index' => 'query_text'));
$this->addColumn('num_results', array('header' => $this->__('Results'), 'sortable' => false, 'index' => 'num_results', 'type' => 'number'));
$this->addColumn('popularity', array('header' => $this->__('Number of Uses'), 'sortable' => false, 'index' => 'popularity', 'type' => 'number'));
$this->setFilterVisibility(false);
$this->setPagerVisibility(false);
return parent::_prepareColumns();
}
示例4: _prepareColumns
protected function _prepareColumns()
{
$this->addColumn('title', array('header' => $this->__('Title'), 'sortable' => false, 'index' => 'title'));
$this->addColumn('identifier', array('header' => $this->__('Identifier'), 'sortable' => false, 'index' => 'identifier'));
$this->addColumn('update_time', array('header' => $this->__('Last Modified'), 'sortable' => false, 'index' => 'update_time'));
$this->setFilterVisibility(false);
$this->setPagerVisibility(false);
return parent::_prepareColumns();
}
示例5: _prepareColumns
protected function _prepareColumns()
{
$this->addColumn('name', array('header' => AO::helper('reports')->__('Product Name'), 'sortable' => false, 'index' => 'name'));
$this->addColumn('price', array('header' => AO::helper('reports')->__('Price'), 'width' => '120px', 'type' => 'currency', 'currency_code' => (string) AO::app()->getStore((int) $this->getParam('store'))->getBaseCurrencyCode(), 'sortable' => false, 'index' => 'price'));
$this->addColumn('views', array('header' => AO::helper('reports')->__('Number of Views'), 'width' => '120px', 'align' => 'right', 'sortable' => false, 'index' => 'views'));
$this->setFilterVisibility(false);
$this->setPagerVisibility(false);
return parent::_prepareColumns();
}
示例6: _prepareColumns
protected function _prepareColumns()
{
$this->addColumn('sku', array('header' => $this->__('Product SKU'), 'sortable' => false, 'index' => 'sku'));
$this->addColumn('name', array('header' => $this->__('Product Name'), 'sortable' => false, 'index' => 'name'));
$this->addColumn('creator_id', array('header' => $this->__('Supplier Name'), 'sortable' => false, 'index' => 'creator_id', 'renderer' => 'Cminds_Supplierfrontendproductuploader_Block_Adminhtml_Dashboard_Supplier_Products_Renderer_Name'));
$this->setFilterVisibility(false);
$this->setPagerVisibility(false);
return parent::_prepareColumns();
}
示例7: _prepareColumns
protected function _prepareColumns()
{
$this->addColumn('search_query', array('header' => $this->__('Search Term'), 'sortable' => false, 'index' => 'name', 'renderer' => 'Mage_Adminhtml_Block_Dashboard_Searches_Renderer_Searchquery'));
$this->addColumn('num_results', array('header' => $this->__('Results'), 'sortable' => false, 'index' => 'num_results', 'type' => 'number'));
$this->addColumn('popularity', array('header' => $this->__('Number of Uses'), 'sortable' => false, 'index' => 'popularity', 'type' => 'number'));
$this->setFilterVisibility(false);
$this->setPagerVisibility(false);
return parent::_prepareColumns();
}
示例8: _prepareColumns
protected function _prepareColumns()
{
$this->addColumn('firstname', array('header' => $this->__('Firstname'), 'sortable' => false, 'index' => 'firstname'));
$this->addColumn('lastname', array('header' => $this->__('Lastname'), 'sortable' => false, 'index' => 'lastname'));
$this->addColumn('logdate', array('header' => $this->__('Date'), 'type' => 'datetime', 'sortable' => false, 'index' => 'logdate'));
$this->setFilterVisibility(false);
$this->setPagerVisibility(false);
return parent::_prepareColumns();
}
示例9: _prepareColumns
protected function _prepareColumns()
{
$this->addColumn('month', array('header' => Mage::helper('compta_invoice')->__('Mois'), 'align' => 'left', 'index' => 'month'));
$this->addColumn('amount', array('header' => Mage::helper('compta_invoice')->__('Montant BRUT'), 'align' => 'left', 'index' => 'amount', 'renderer' => 'Compta_Invoice_Block_Adminhtml_Renderer_Amount'));
$this->addColumn('amount_net', array('header' => Mage::helper('compta_invoice')->__('Montant NET'), 'align' => 'left', 'index' => 'amount_net', 'renderer' => 'Compta_Invoice_Block_Adminhtml_Renderer_Amount'));
$this->setFilterVisibility(false);
$this->setPagerVisibility(false);
return parent::_prepareColumns();
}
示例10: _prepareColumns
protected function _prepareColumns()
{
$this->addColumn('customer', array('header' => $this->__('Customer'), 'sortable' => false, 'index' => 'customer', 'default' => $this->__('Guest')));
$this->addColumn('items', array('header' => $this->__('Items'), 'align' => 'right', 'type' => 'number', 'sortable' => false, 'index' => 'items_count'));
$baseCurrencyCode = Mage::app()->getStore((int) $this->getParam('store'))->getBaseCurrencyCode();
$this->addColumn('total', array('header' => $this->__('Grand Total'), 'align' => 'right', 'sortable' => false, 'type' => 'currency', 'currency_code' => $baseCurrencyCode, 'index' => 'revenue'));
$this->setFilterVisibility(false);
$this->setPagerVisibility(false);
return parent::_prepareColumns();
}
示例11: _prepareColumns
protected function _prepareColumns()
{
$this->addColumn('number', array('header' => Mage::helper('compta_invoice')->__('Numéro'), 'align' => 'left', 'index' => 'number'));
$this->addColumn('nom', array('header' => Mage::helper('compta_invoice')->__('Client'), 'align' => 'left', 'index' => 'nom'));
$this->addColumn('amount', array('header' => Mage::helper('compta_invoice')->__('Montant'), 'align' => 'left', 'index' => 'amount', 'renderer' => 'Compta_Invoice_Block_Adminhtml_Renderer_Amount'));
$this->addColumn('payment_date', array('header' => Mage::helper('compta_invoice')->__('Date de paiement'), 'index' => 'payment_date', 'type' => 'date'));
$this->setFilterVisibility(false);
$this->setPagerVisibility(false);
return parent::_prepareColumns();
}
示例12: _prepareColumns
protected function _prepareColumns()
{
$this->addColumn('name', array('header' => $this->__('Customer Name'), 'sortable' => false, 'index' => 'name'));
$this->addColumn('orders_count', array('header' => $this->__('Number of Orders'), 'sortable' => false, 'index' => 'orders_count', 'type' => 'number'));
$baseCurrencyCode = (string) Mage::app()->getStore((int) $this->getParam('store'))->getBaseCurrencyCode();
$this->addColumn('orders_avg_amount', array('header' => $this->__('Average Order Amount'), 'align' => 'right', 'sortable' => false, 'type' => 'currency', 'currency_code' => $baseCurrencyCode, 'index' => 'orders_avg_amount', 'renderer' => 'adminhtml/report_grid_column_renderer_currency'));
$this->addColumn('orders_sum_amount', array('header' => $this->__('Total Order Amount'), 'align' => 'right', 'sortable' => false, 'type' => 'currency', 'currency_code' => $baseCurrencyCode, 'index' => 'orders_sum_amount', 'renderer' => 'adminhtml/report_grid_column_renderer_currency'));
$this->setFilterVisibility(false);
$this->setPagerVisibility(false);
return parent::_prepareColumns();
}
示例13: _prepareColumns
/**
* Prepares the columns and specifies
* the templates to use.
*
* @return Faett_Piwik_Block_Adminhtml_Dashboard_Tab_Live_User The instance
*/
protected function _prepareColumns()
{
// add a column for the visitor data
$this->addColumn('visitor', array('header' => Mage::helper('piwik')->__('Visitor'), 'sortable' => false, 'renderer' => 'piwik/adminhtml_report_grid_column_renderer_generic', 'tmpl' => 'piwik/report/grid/column/renderer/visitor.phtml', 'width' => 200));
// add a column for the referer data
$this->addColumn('referer', array('header' => Mage::helper('piwik')->__('Referer'), 'sortable' => false, 'renderer' => 'piwik/adminhtml_report_grid_column_renderer_generic', 'tmpl' => 'piwik/report/grid/column/renderer/referer.phtml'));
// add a column for the pages visited
$this->addColumn('pages', array('header' => Mage::helper('piwik')->__('Pages'), 'sortable' => false, 'renderer' => 'piwik/adminhtml_report_grid_column_renderer_generic', 'tmpl' => 'piwik/report/grid/column/renderer/pages.phtml'));
// turn off filter and pager
$this->setFilterVisibility(false);
$this->setPagerVisibility(false);
// call the method of the parent class
return parent::_prepareColumns();
}