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


PHP Mage_Adminhtml_Block_Report_Grid::_prepareCollection方法代码示例

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


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

示例1: _prepareCollection

 protected function _prepareCollection()
 {
     parent::_prepareCollection();
     $_filter = $this->getParam($this->getVarNameFilter(), null);
     $_filterData = array();
     parse_str(urldecode(base64_decode($_filter)), $_filterData);
     $this->getCollection()->initReport('payperrentals/reports_product_stock_collection');
     foreach ($this->getColumns() as $_columnId => $_column) {
         if (isset($_filterData[$_columnId]) && (!empty($_filterData[$_columnId]) || strlen($_filterData[$_columnId]) > 0) && $_column->getFilter()) {
             $_column->getFilter()->setValue($_filterData[$_columnId]);
         }
     }
     Mage::register('filter_data', $_filterData);
     Mage::register('grid_columns', $this->getColumns());
     $_categoryFilter = $this->getFilter('report_category');
     if ($_categoryFilter != 'none') {
         Mage::register('category_filter', $_categoryFilter);
     }
     return $this;
 }
开发者ID:hueyl77,项目名称:fourwindsgear,代码行数:20,代码来源:Grid.php

示例2: _prepareCollection

 protected function _prepareCollection()
 {
     parent::_prepareCollection();
     $this->getCollection()->initReport('Mage_Reports_Model_Resource_Customer_Totals_Collection');
 }
开发者ID:nemphys,项目名称:magento2,代码行数:5,代码来源:Grid.php

示例3: _prepareCollection

 /**
  * Prepare report collection
  *
  * @return Enterprise_Invitation_Block_Adminhtml_Report_Invitation_General_Grid
  */
 protected function _prepareCollection()
 {
     parent::_prepareCollection();
     $this->getCollection()->initReport('enterprise_invitation/report_invitation_collection');
     return $this;
 }
开发者ID:hyhoocchan,项目名称:mage-local,代码行数:11,代码来源:Grid.php

示例4: _prepareOlderCollection

 /**
  * Prepare collection to use by older method of prepare
  * @return AW_Advancedreports_Block_Advanced_Grid
  */
 protected function _prepareOlderCollection()
 {
     $this->_setUpReportKey();
     $this->_prepareFiltersBefore();
     parent::_prepareCollection();
     $this->_prepareFiltersAfter();
     $this->_saveFilters();
     return $this;
 }
开发者ID:cnglobal-sl,项目名称:caterez,代码行数:13,代码来源:Grid.php

示例5: _prepareCollection

 protected function _prepareCollection()
 {
     parent::_prepareCollection();
     $this->getCollection()->initReport('supplierfrontendproductuploader/report_items_ordered');
     return $this;
 }
开发者ID:programmerrahul,项目名称:vastecom,代码行数:6,代码来源:Grid.php

示例6: _prepareCollection

 /**
  * Prepare collection object for grid
  *
  * @return Mage_Adminhtml_Block_Report_Product_Sold_Grid
  */
 protected function _prepareCollection()
 {
     parent::_prepareCollection();
     $this->getCollection()->initReport('rewardpoints/rewardpointshistory_rewarded_collection');
     return $this;
 }
开发者ID:shebin512,项目名称:Magento_Zoff,代码行数:11,代码来源:Grid.php

示例7: _prepareOlderCollection

 /**
  * Prepare collection to use by older method of prepare
  * @return AW_Advancedreports_Block_Advanced_Grid
  */
 protected function _prepareOlderCollection()
 {
     parent::_prepareCollection();
     return $this;
 }
开发者ID:xiaoguizhidao,项目名称:autotech_design,代码行数:9,代码来源:Grid.php

示例8: _prepareCollection

 /**
  * Setting up proper product collection name for a report
  *
  * @return Rossmc_Stocksold_Block_Report_Product_Simplesold_Grid
  */
 protected function _prepareCollection()
 {
     Mage_Adminhtml_Block_Report_Grid::_prepareCollection();
     $this->getCollection()->initReport('rossmc_stocksold/simpleproduct_sold_collection');
     return $this;
 }
开发者ID:rossmc,项目名称:Rossmc_Stocksold,代码行数:11,代码来源:Grid.php


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