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


PHP Piwik_ViewDataTable类代码示例

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


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

示例1: 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

示例2: init

 /**
  * @see Piwik_ViewDataTable::init()
  */
 function init($currentControllerName, $currentControllerAction, $moduleNameAndMethod)
 {
     parent::init($currentControllerName, $currentControllerAction, $moduleNameAndMethod);
     $this->dataTableTemplate = 'Home/templates/cloud.tpl';
     $this->disableOffsetInformation();
     $this->disableExcludeLowPopulation();
 }
开发者ID:Doluci,项目名称:tomatocart,代码行数:10,代码来源:Cloud.php

示例3: 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

示例4: 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

示例5: 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

示例6: init

 /**
  * @see Piwik_ViewDataTable::init()
  *
  */
 function init($currentControllerName, $currentControllerAction, $moduleNameAndMethod)
 {
     parent::init($currentControllerName, $currentControllerAction, $moduleNameAndMethod);
     $this->dataTableTemplate = 'Home/templates/graph.tpl';
     $this->disableOffsetInformation();
     $this->disableExcludeLowPopulation();
     $this->disableSearchBox();
     $this->parametersToModify = array('viewDataTable' => $this->valueParameterViewDataTable, 'module' => $currentControllerName, 'action' => $currentControllerAction);
 }
开发者ID:Doluci,项目名称:tomatocart,代码行数:13,代码来源:Graph.php

示例7: 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

示例8: init

 /**
  * @see Piwik_ViewDataTable::init()
  */
 function init($currentControllerName, $currentControllerAction, $moduleNameAndMethod, $actionToLoadTheSubTable = null)
 {
     parent::init($currentControllerName, $currentControllerAction, $moduleNameAndMethod, $actionToLoadTheSubTable);
     $this->dataTableTemplate = 'Home/templates/datatable.tpl';
     $this->variablesDefault['enable_sort'] = true;
     // load general columns translations
     $this->setColumnTranslation('nb_visits', Piwik_Translate('General_ColumnNbVisits'));
     $this->setColumnTranslation('label', Piwik_Translate('General_ColumnLabel'));
     $this->setColumnTranslation('nb_uniq_visitors', Piwik_Translate('General_ColumnNbUniqVisitors'));
 }
开发者ID:Doluci,项目名称:tomatocart,代码行数:13,代码来源:Html.php

示例9: 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

示例10: 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

示例11: 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

示例12: 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

示例13: 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

示例14: 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

示例15: 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


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