当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Adminhtml_Block_Widget_Grid::_beforeToHtml方法代码示例

本文整理汇总了PHP中Mage_Adminhtml_Block_Widget_Grid::_beforeToHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Widget_Grid::_beforeToHtml方法的具体用法?PHP Mage_Adminhtml_Block_Widget_Grid::_beforeToHtml怎么用?PHP Mage_Adminhtml_Block_Widget_Grid::_beforeToHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mage_Adminhtml_Block_Widget_Grid的用法示例。


在下文中一共展示了Mage_Adminhtml_Block_Widget_Grid::_beforeToHtml方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->setId($this->getId() . '_' . $this->getIndex());
     $this->getChild('reset_filter_button')->setData('onclick', $this->getJsObjectName() . '.resetFilter()');
     $this->getChild('search_button')->setData('onclick', $this->getJsObjectName() . '.doFilter()');
     return parent::_beforeToHtml();
 }
开发者ID:jpbender,项目名称:mage_virtual,代码行数:7,代码来源:Product.php

示例2: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->addColumn('id', array('header' => Mage::helper('customer')->__('ID'), 'width' => '40px', 'align' => 'right', 'filter' => false, 'sortable' => false, 'default' => Mage::helper('customer')->__('n/a'), 'index' => 'customer_id'));
     $this->addColumn('firstname', array('header' => Mage::helper('customer')->__('First Name'), 'filter' => false, 'sortable' => false, 'default' => Mage::helper('customer')->__('Guest'), 'index' => 'customer_firstname'));
     $this->addColumn('lastname', array('header' => Mage::helper('customer')->__('Last Name'), 'filter' => false, 'sortable' => false, 'default' => Mage::helper('customer')->__('n/a'), 'index' => 'customer_lastname'));
     $this->addColumn('email', array('header' => Mage::helper('customer')->__('Email'), 'filter' => false, 'sortable' => false, 'default' => Mage::helper('customer')->__('n/a'), 'index' => 'customer_email'));
     $this->addColumn('ip_address', array('header' => Mage::helper('customer')->__('IP Address'), 'index' => 'remote_addr', 'default' => Mage::helper('customer')->__('n/a'), 'renderer' => 'adminhtml/customer_online_grid_renderer_ip'));
     $this->addColumn('session_start_time', array('header' => Mage::helper('customer')->__('Session Start Time'), 'align' => 'left', 'type' => 'datetime', 'default' => Mage::helper('customer')->__('n/a'), 'width' => '200px', 'index' => 'first_visit_at'));
     $this->addColumn('last_activity', array('header' => Mage::helper('customer')->__('Last Activity'), 'align' => 'left', 'type' => 'datetime', 'default' => Mage::helper('customer')->__('n/a'), 'width' => '200px', 'index' => 'last_visit_at'));
     $this->addColumn('type', array('header' => Mage::helper('customer')->__('Type'), 'index' => 'customer_id', 'type' => 'options', 'options' => array('c' => Mage::helper('customer')->__('Customer'), 'v' => Mage::helper('customer')->__('Visitor')), 'renderer' => 'adminhtml/customer_online_grid_renderer_type'));
     $this->addColumn('last_url', array('header' => Mage::helper('customer')->__('Last Url'), 'default' => Mage::helper('customer')->__('n/a'), 'index' => 'url'));
     $this->_initCollection();
     return parent::_beforeToHtml();
 }
开发者ID:arslbbt,项目名称:mangentovies,代码行数:14,代码来源:Grid.php

示例3: _beforeToHtml

 protected function _beforeToHtml()
 {
     $this->setId('outbox_grid');
     parent::_beforeToHtml();
 }
开发者ID:jsiefer,项目名称:emarketing,代码行数:5,代码来源:Grid.php


注:本文中的Mage_Adminhtml_Block_Widget_Grid::_beforeToHtml方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。