當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Piwik_ViewDataTable::factory方法代碼示例

本文整理匯總了PHP中Piwik_ViewDataTable::factory方法的典型用法代碼示例。如果您正苦於以下問題:PHP Piwik_ViewDataTable::factory方法的具體用法?PHP Piwik_ViewDataTable::factory怎麽用?PHP Piwik_ViewDataTable::factory使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Piwik_ViewDataTable的用法示例。


在下文中一共展示了Piwik_ViewDataTable::factory方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getVisitorLog

 public function getVisitorLog($fetch = false)
 {
     // If previous=1 is set, user clicked previous
     // we can't deal with previous so we force display of the first page
     if (Piwik_Common::getRequestVar('previous', 0, 'int') == 1) {
         $_GET['maxIdVisit'] = '';
     }
     $view = Piwik_ViewDataTable::factory();
     $view->init($this->pluginName, __FUNCTION__, 'Live.getLastVisitsDetails');
     $view->disableGenericFilters();
     $view->disableSort();
     $view->setTemplate("Live/templates/visitorLog.tpl");
     $view->setSortedColumn('idVisit', 'ASC');
     $view->disableSearchBox();
     $view->setLimit(20);
     $view->disableOffsetInformation();
     $view->disableExcludeLowPopulation();
     // disable the tag cloud,  pie charts, bar chart icons
     $view->disableShowAllViewsIcons();
     // disable the button "show more datas"
     $view->disableShowAllColumns();
     // disable the RSS feed
     $view->disableShowExportAsRssFeed();
     // disable all row actions
     if ($view instanceof Piwik_ViewDataTable_HtmlTable) {
         $view->disableRowActions();
     }
     $view->setReportDocumentation(Piwik_Translate('Live_VisitorLogDocumentation', array('<br />', '<br />')));
     $view->setCustomParameter('dataTablePreviousIsFirst', 1);
     $view->setCustomParameter('filterEcommerce', Piwik_Common::getRequestVar('filterEcommerce', 0, 'int'));
     $view->setCustomParameter('pageUrlNotDefined', Piwik_Translate('General_NotDefined', Piwik_Translate('Actions_ColumnPageURL')));
     return $this->renderView($view, $fetch);
 }
開發者ID:nomoto-ubicast,項目名稱:piwik,代碼行數:33,代碼來源:Controller.php

示例2: getVisitorLog

 public function getVisitorLog($fetch = false)
 {
     // If previous=1 is set, user clicked previous
     // we can't deal with previous so we force display of the first page
     if (Piwik_Common::getRequestVar('previous', 0, 'int') == 1) {
         $_GET['maxIdVisit'] = '';
     }
     $view = Piwik_ViewDataTable::factory();
     $view->init($this->pluginName, __FUNCTION__, 'Live.getLastVisitsDetails');
     $view->disableGenericFilters();
     $view->disableSort();
     $view->setTemplate("Live/templates/visitorLog.tpl");
     $view->setSortedColumn('idVisit', 'ASC');
     $view->disableSearchBox();
     $view->setLimit(20);
     $view->disableOffsetInformation();
     $view->disableExcludeLowPopulation();
     // disable the tag cloud,  pie charts, bar chart icons
     $view->disableShowAllViewsIcons();
     // disable the button "show more datas"
     $view->disableShowAllColumns();
     // disable the RSS feed
     $view->disableShowExportAsRssFeed();
     $view->setCustomParameter('pageUrlNotDefined', Zend_Registry::get('config')->General->action_default_url_when_not_defined);
     return $this->renderView($view, $fetch);
 }
開發者ID:Gninety,項目名稱:Microweber,代碼行數:26,代碼來源:Controller.php

示例3: collections_projects

 public function collections_projects($fetch = false)
 {
     $view = Piwik_ViewDataTable::factory();
     $view->init($this->pluginName, __FUNCTION__, "DigitalCollections.getCollectionTableProjects");
     $this->configView($view);
     return $this->renderView($view, $fetch);
 }
開發者ID:arminiusdc,項目名稱:goobi-contrib,代碼行數:7,代碼來源:Controller.php

示例4: getOutlinksSubDataTable

 public function getOutlinksSubDataTable($fetch = false)
 {
     $view = Piwik_ViewDataTable::factory();
     $view->init($this->pluginName, __FUNCTION__, 'Actions.getOutlinks', 'getOutlinksSubDataTable');
     $this->configureViewOutlinks($view);
     $view->disableSearchBox();
     return $this->renderView($view, $fetch);
 }
開發者ID:Doluci,項目名稱:tomatocart,代碼行數:8,代碼來源:Controller.php

示例5: getCustomVariablesValuesFromNameId

 function getCustomVariablesValuesFromNameId($fetch = false)
 {
     $view = Piwik_ViewDataTable::factory();
     $view->init($this->pluginName, __FUNCTION__, 'CustomVariables.getCustomVariablesValuesFromNameId');
     $view->disableSearchBox();
     $view->disableExcludeLowPopulation();
     $view->setColumnsToDisplay(array('label', 'nb_visits'));
     $view->setColumnTranslation('label', Piwik_Translate('CustomVariables_ColumnCustomVariableValue'));
     return $this->renderView($view, $fetch);
 }
開發者ID:Gninety,項目名稱:Microweber,代碼行數:10,代碼來源:Controller.php

示例6: getPagesFromVisitId

 function getPagesFromVisitId($fetch = false)
 {
     $view = Piwik_ViewDataTable::factory('');
     $view->init($this->pluginName, __FUNCTION__, 'Live.getLastVisitsForVisitor', 'getPagesFromVisitId');
     #$view->disableSearchBox();
     #$view->disableExcludeLowPopulation();
     #$view->setColumnsToDisplay( array('label','nb_visits') );
     #$view->setColumnTranslation('label', Piwik_Translate('Referers_ColumnKeyword'));
     return $this->renderView($view, $fetch);
 }
開發者ID:Doluci,項目名稱:tomatocart,代碼行數:10,代碼來源:Controller.php

示例7: getStandardDataTableUserCountry

 protected function getStandardDataTableUserCountry($currentControllerAction, $APItoCall, $defaultDatatableType = null)
 {
     $view = Piwik_ViewDataTable::factory($defaultDatatableType);
     $view->init($this->pluginName, $currentControllerAction, $APItoCall);
     $view->disableExcludeLowPopulation();
     $this->setPeriodVariablesView($view);
     $this->setMetricsVariablesView($view);
     $view->enableShowGoals();
     return $view;
 }
開發者ID:nnnnathann,項目名稱:piwik,代碼行數:10,代碼來源:Controller.php

示例8: getGraph

 private function getGraph($controllerMethod, $apiMethod, $labelTranslation, $limit = 24)
 {
     $view = Piwik_ViewDataTable::factory('graphVerticalBar');
     $view->init($this->pluginName, $controllerMethod, $apiMethod);
     $view->setColumnTranslation('label', Piwik_Translate($labelTranslation));
     $view->setSortedColumn('label', 'asc');
     $view->setLimit($limit);
     $view->setGraphLimit($limit);
     $view->disableSearchBox();
     $view->disableExcludeLowPopulation();
     $view->disableOffsetInformationAndPaginationControls();
     $this->setMetricsVariablesView($view);
     return $view;
 }
開發者ID:nnnnathann,項目名稱:piwik,代碼行數:14,代碼來源:Controller.php

示例9: getNumberOfVisitsPerPage

 function getNumberOfVisitsPerPage($fetch = false)
 {
     $view = Piwik_ViewDataTable::factory('cloud');
     $view->init($this->pluginName, __FUNCTION__, "VisitorInterest.getNumberOfVisitsPerPage");
     $view->setColumnsToDisplay(array('label', 'nb_visits'));
     $view->setSortedColumn('nb_visits', 'asc');
     $view->setColumnTranslation('label', Piwik_Translate('VisitorInterest_ColumnPagesPerVisit'));
     $view->disableExcludeLowPopulation();
     $view->disableOffsetInformation();
     $view->disableSearchBox();
     $view->disableSort();
     $view->disableShowAllColumns();
     return $this->renderView($view, $fetch);
 }
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:14,代碼來源:Controller.php

示例10: getVisitInformationPerLocalTime

 function getVisitInformationPerLocalTime($fetch = false)
 {
     $view = Piwik_ViewDataTable::factory('graphVerticalBar');
     $view->init($this->pluginName, __FUNCTION__, "VisitTime.getVisitInformationPerLocalTime");
     $view->setColumnTranslation('label', Piwik_Translate('VisitTime_ColumnLocalTime'));
     $view->setColumnsToDisplay(array('label', 'nb_visits'));
     $view->setSortedColumn('label', 'asc');
     $view->setLimit(24);
     $view->setGraphLimit(24);
     $view->disableSearchBox();
     $view->disableExcludeLowPopulation();
     $view->disableOffsetInformation();
     return $this->renderView($view, $fetch);
 }
開發者ID:klando,項目名稱:pgpiwik,代碼行數:14,代碼來源:Controller.php

示例11: getProvider

 /**
  * Provider
  */
 function getProvider($fetch = false)
 {
     $view = Piwik_ViewDataTable::factory();
     $view->init($this->pluginName, __FUNCTION__, "Provider.getProvider");
     $this->setPeriodVariablesView($view);
     $column = 'nb_visits';
     if ($view->period == 'day') {
         $column = 'nb_uniq_visitors';
     }
     $view->setColumnsToDisplay(array('label', $column));
     $view->setColumnTranslation('label', Piwik_Translate('Provider_ColumnProvider'));
     $view->setSortedColumn($column);
     $view->setLimit(5);
     return $this->renderView($view, $fetch);
 }
開發者ID:Doluci,項目名稱:tomatocart,代碼行數:18,代碼來源:Controller.php

示例12: getStandardDataTableUserCountry

 protected function getStandardDataTableUserCountry($currentControllerAction, $APItoCall, $defaultDatatableType = null)
 {
     $view = Piwik_ViewDataTable::factory($defaultDatatableType);
     $view->init($this->pluginName, $currentControllerAction, $APItoCall);
     $view->disableExcludeLowPopulation();
     $this->setPeriodVariablesView($view);
     $column = 'nb_visits';
     if ($view->period == 'day') {
         $column = 'nb_uniq_visitors';
     }
     $view->setColumnsToDisplay(array('label', $column));
     $view->setSortedColumn($column);
     $view->enableShowGoals();
     return $view;
 }
開發者ID:Doluci,項目名稱:tomatocart,代碼行數:15,代碼來源:Controller.php

示例13: getIntranetSubNetwork

 /**
  * IntranetSubNetwork
  */
 function getIntranetSubNetwork($fetch = false)
 {
     $view = Piwik_ViewDataTable::factory();
     $view->init($this->pluginName, __FUNCTION__, "IntranetSubNetwork.getIntranetSubNetwork");
     $this->setPeriodVariablesView($view);
     $column = 'nb_visits';
     $percCol = 'nb_visits_percentage';
     $percColName = 'General_ColumnPercentageVisits';
     if ($view->period == 'day') {
         $column = 'nb_uniq_visitors';
     }
     $view->setColumnsToDisplay(array('label', $percCol, $column));
     $view->setColumnTranslation('label', Piwik_Translate('IntranetSubNetwork_ColumnIntranetSubNetwork'));
     $view->setColumnTranslation($percCol, str_replace('% ', '%&nbsp;', Piwik_Translate($percColName)));
     $view->setSortedColumn($percCol);
     $view->setLimit(5);
     return $this->renderView($view, $fetch);
 }
開發者ID:nachopavon,項目名稱:IntranetSubNetwork,代碼行數:21,代碼來源:Controller.php

示例14: generateSparkline

 function generateSparkline()
 {
     $serverRequested = Piwik_Common::getRequestVar('server');
     $view = Piwik_ViewDataTable::factory('sparkline');
     $view->init($this->pluginName, __FUNCTION__, 'ExampleUI.getTemperaturesEvolution');
     $view->setColumnsToDisplay($serverRequested);
     $this->renderView($view);
 }
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:8,代碼來源:Controller.php

示例15: getRowEvolutionGraph

 /**
  * Generic method to get an evolution graph or a sparkline for the row evolution popover.
  * Do as much as possible from outside the controller.
  * @return Piwik_ViewDataTable
  */
 public function getRowEvolutionGraph()
 {
     // set up the view data table
     $view = Piwik_ViewDataTable::factory($this->graphType);
     $view->setDataTable($this->dataTable);
     $view->init('CoreHome', 'getRowEvolutionGraph', $this->apiMethod);
     if (!empty($this->graphMetrics)) {
         $view->setColumnsToDisplay(array_keys($this->graphMetrics));
     }
     $view->hideAllViewsIcons();
     foreach ($this->availableMetrics as $metric => $metadata) {
         $view->setColumnTranslation($metric, $metadata['name']);
     }
     if (method_exists($view, 'addRowEvolutionSeriesToggle')) {
         $view->addRowEvolutionSeriesToggle($this->initiallyShowAllMetrics);
     }
     return $view;
 }
開發者ID:nomoto-ubicast,項目名稱:piwik,代碼行數:23,代碼來源:RowEvolution.php


注:本文中的Piwik_ViewDataTable::factory方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。