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


PHP View::singleReport方法代码示例

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


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

示例1: renderReportMenu

 public function renderReportMenu(Report $report)
 {
     Piwik::checkUserHasSomeViewAccess();
     $this->checkSitePermission();
     $report->checkIsEnabled();
     $menuTitle = $report->getMenuTitle();
     if (empty($menuTitle)) {
         throw new Exception('This report is not supposed to be displayed in the menu, please define a $menuTitle in your report.');
     }
     $menuTitle = $this->translator->translate($menuTitle);
     $content = $this->renderReportWidget($report);
     return View::singleReport($menuTitle, $content);
 }
开发者ID:bossrabbit,项目名称:piwik,代码行数:13,代码来源:Controller.php

示例2: indexEvent

 protected function indexEvent($controllerMethod)
 {
     $count = 1;
     $apiMethod = str_replace('index', 'get', $controllerMethod, $count);
     $events = new Events();
     $title = $events->getReportTitleTranslation($apiMethod);
     if (method_exists($this, $apiMethod)) {
         $content = $this->{$apiMethod}();
     } else {
         $content = $this->renderReport($apiMethod);
     }
     return View::singleReport($title, $content);
 }
开发者ID:FluentDevelopment,项目名称:piwik,代码行数:13,代码来源:Controller.php

示例3: renderReportMenu

 public function renderReportMenu($reportModule = null, $reportAction = null)
 {
     Piwik::checkUserHasSomeViewAccess();
     $this->checkSitePermission();
     $report = Report::factory($reportModule, $reportAction);
     if (empty($report)) {
         throw new Exception(Piwik::translate('General_ExceptionReportNotFound'));
     }
     $report->checkIsEnabled();
     $menuTitle = $report->getMenuTitle();
     if (empty($menuTitle)) {
         throw new Exception('This report is not supposed to be displayed in the menu, please define a $menuTitle in your report.');
     }
     $menuTitle = Piwik::translate($menuTitle);
     $content = $this->renderReportWidget($reportModule, $reportAction);
     return View::singleReport($menuTitle, $content);
 }
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:17,代码来源:Controller.php

示例4: indexCampaigns

 public function indexCampaigns()
 {
     return View::singleReport(Piwik::translate('Referrers_Campaigns'), $this->getCampaigns(true));
 }
开发者ID:carriercomm,项目名称:piwik,代码行数:4,代码来源:Controller.php

示例5: indexOutlinks

 public function indexOutlinks()
 {
     return View::singleReport(Piwik::translate('General_Outlinks'), $this->getOutlinks(true));
 }
开发者ID:carriercomm,项目名称:piwik,代码行数:4,代码来源:Controller.php

示例6: indexEvent

 protected function indexEvent($controllerMethod)
 {
     $count = 1;
     $apiMethod = str_replace('index', 'get', $controllerMethod, $count);
     $events = new Events();
     $title = $events->getReportTitleTranslation($apiMethod);
     return View::singleReport($title, $this->{$apiMethod}());
 }
开发者ID:brienomatty,项目名称:elmsln,代码行数:8,代码来源:Controller.php

示例7: menuGetContentPieces

 public function menuGetContentPieces()
 {
     $report = new GetContentPieces();
     return View::singleReport($report->getName(), $report->render());
 }
开发者ID:a4tunado,项目名称:piwik,代码行数:5,代码来源:Controller.php

示例8: menuGetContentPieces

 public function menuGetContentPieces()
 {
     $report = Report::factory($this->pluginName, 'getContentPieces');
     return View::singleReport($report->getName(), $report->render());
 }
开发者ID:FluentDevelopment,项目名称:piwik,代码行数:5,代码来源:Controller.php

示例9: index

 public function index()
 {
     return View::singleReport(Piwik::translate('CustomVariables_CustomVariables'), $this->getCustomVariables(true));
 }
开发者ID:brienomatty,项目名称:elmsln,代码行数:4,代码来源:Controller.php


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