當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。