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


PHP Piwik_ViewDataTable::getColumnsToDisplay方法代码示例

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


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

示例1: initChartObjectData

 protected function initChartObjectData()
 {
     $this->dataTable->applyQueuedFilters();
     // We apply a filter to the DataTable, decoding the label column (useful for keywords for example)
     $this->dataTable->filter('ColumnCallbackReplace', array('label', 'urldecode'));
     $xLabels = $this->dataTable->getColumn('label');
     $columnNames = parent::getColumnsToDisplay();
     if (($labelColumnFound = array_search('label', $columnNames)) !== false) {
         unset($columnNames[$labelColumnFound]);
     }
     $columnNameToTranslation = $columnNameToValue = array();
     foreach ($columnNames as $columnName) {
         $columnNameToTranslation[$columnName] = $this->getColumnTranslation($columnName);
         $columnNameToValue[$columnName] = $this->dataTable->getColumn($columnName);
     }
     $this->view->setAxisXLabels($xLabels);
     $this->view->setAxisYValues($columnNameToValue);
     $this->view->setAxisYLabels($columnNameToTranslation);
     $this->view->setAxisYUnit($this->yAxisUnit);
     $this->view->setDisplayPercentageInTooltip($this->displayPercentageInTooltip);
 }
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:21,代码来源:GenerateGraphData.php

示例2: getColumnToDisplay

 function getColumnToDisplay()
 {
     $columns = parent::getColumnsToDisplay();
     // not label, but the first numeric column
     return $columns[1];
 }
开发者ID:Doluci,项目名称:tomatocart,代码行数:6,代码来源:Cloud.php

示例3: initChartObjectData

 protected function initChartObjectData()
 {
     $this->dataTable->applyQueuedFilters();
     // We apply a filter to the DataTable, decoding the label column (useful for keywords for example)
     $this->dataTable->filter('ColumnCallbackReplace', array('label', 'urldecode'));
     $xLabels = $this->dataTable->getColumn('label');
     $columnNames = parent::getColumnsToDisplay();
     if (($labelColumnFound = array_search('label', $columnNames)) !== false) {
         unset($columnNames[$labelColumnFound]);
     }
     $columnNameToTranslation = $columnNameToValue = array();
     foreach ($columnNames as $columnName) {
         $columnNameToTranslation[$columnName] = $this->getColumnTranslation($columnName);
         $columnNameToValue[$columnName] = $this->dataTable->getColumn($columnName);
     }
     $this->view->setAxisXLabels($xLabels);
     $this->view->setAxisYValues($columnNameToValue);
     $this->view->setAxisYLabels($columnNameToTranslation);
     $this->view->setAxisYUnit($this->yAxisUnit);
     $this->view->setDisplayPercentageInTooltip($this->displayPercentageInTooltip);
     // show_all_ticks is not real query param, it is set by GenerateGraphHTML.
     if (Piwik_Common::getRequestVar('show_all_ticks', 0) == 1) {
         $this->view->showAllTicks();
     }
     $units = $this->getUnitsForColumnsToDisplay();
     $this->view->setAxisYUnits($units);
     $this->addSeriesPickerToView();
 }
开发者ID:josl,项目名称:CGE-File-Sharing,代码行数:28,代码来源:GenerateGraphData.php


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