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