本文整理汇总了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;
}
示例2: _prepareCollection
protected function _prepareCollection()
{
parent::_prepareCollection();
$this->getCollection()->initReport('Mage_Reports_Model_Resource_Customer_Totals_Collection');
}
示例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;
}
示例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;
}
示例5: _prepareCollection
protected function _prepareCollection()
{
parent::_prepareCollection();
$this->getCollection()->initReport('supplierfrontendproductuploader/report_items_ordered');
return $this;
}
示例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;
}
示例7: _prepareOlderCollection
/**
* Prepare collection to use by older method of prepare
* @return AW_Advancedreports_Block_Advanced_Grid
*/
protected function _prepareOlderCollection()
{
parent::_prepareCollection();
return $this;
}
示例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;
}