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


PHP Piwik_View::render方法代碼示例

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


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

示例1: getSearchEnginesAndKeywords

 function getSearchEnginesAndKeywords()
 {
     $view = new Piwik_View('Referers/templates/searchEngines_Keywords.tpl');
     $view->searchEngines = $this->getSearchEngines(true);
     $view->keywords = $this->getKeywords(true);
     echo $view->render();
 }
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:7,代碼來源:Controller.php

示例2: index

 function index()
 {
     $view = new Piwik_View('DBStats/templates/DBStats.tpl');
     $view->tablesStatus = Piwik_DBStats_API::getAllTablesStatus();
     $view->menu = Piwik_GetAdminMenu();
     echo $view->render();
 }
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:7,代碼來源:Controller.php

示例3: render

	function render()
	{
		// prepare the all steps templates
		$this->currentStepId = array_search($this->currentStepName, $this->steps);
		$this->totalNumberOfSteps = count($this->steps);
		
		$this->percentDone = round(($this->currentStepId) * 100 / ($this->totalNumberOfSteps-1));
		$this->percentToDo = 100 - $this->percentDone;
		
		$this->nextModuleName = '';
		if(isset($this->steps[$this->currentStepId + 1]))
		{
			$this->nextModuleName = $this->steps[$this->currentStepId + 1];
		}
		$this->previousModuleName = '';
		if(isset($this->steps[$this->currentStepId - 1]))
		{
			$this->previousModuleName = $this->steps[$this->currentStepId - 1];
		}
		$this->previousPreviousModuleName = '';
		if(isset($this->steps[$this->currentStepId - 2]))
		{
			$this->previousPreviousModuleName = $this->steps[$this->currentStepId - 2];
		}

		return parent::render();
	}
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:27,代碼來源:View.php

示例4: sendFeedback

 /**
  * send email to Piwik team and display nice thanks
  */
 function sendFeedback()
 {
     $body = Piwik_Common::getRequestVar('body', '', 'string');
     $email = Piwik_Common::getRequestVar('email', '', 'string');
     $view = new Piwik_View('Feedback/templates/sent.tpl');
     try {
         $minimumBodyLength = 35;
         if (strlen($body) < $minimumBodyLength) {
             throw new Exception(sprintf("Message must be at least %s characters long.", $minimumBodyLength));
         }
         if (!Piwik::isValidEmailString($email)) {
             throw new Exception(Piwik_Translate('UsersManager_ExceptionInvalidEmail'));
         }
         if (strpos($body, 'http://') !== false) {
             throw new Exception("The message cannot contain a URL, to avoid spams messages.");
         }
         $mail = new Piwik_Mail();
         $mail->setFrom($email);
         $mail->addTo('hello@piwik.org', 'Piwik Team');
         $mail->setSubject('[ Feedback form - Piwik ]');
         $mail->setBodyText($body);
         @$mail->send();
     } catch (Exception $e) {
         $view->ErrorString = $e->getMessage();
         $view->message = $body;
     }
     echo $view->render();
 }
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:31,代碼來源:Controller.php

示例5: searches

 /** Latest searches method */
 public function searches()
 {
     $view = new Piwik_View('LatestReferrers/templates/searches.tpl');
     $view->latestSearches = $this->latestSearches(true);
     $view->latestNewSearches = $this->latestNewSearches(true);
     echo $view->render();
 }
開發者ID:BeezyT,項目名稱:piwik-latestreferrers,代碼行數:8,代碼來源:Controller.php

示例6: index

 function index()
 {
     $view = new Piwik_View('VisitTime/templates/index.tpl');
     $view->dataTableVisitInformationPerLocalTime = $this->getVisitInformationPerLocalTime(true);
     $view->dataTableVisitInformationPerServerTime = $this->getVisitInformationPerServerTime(true);
     echo $view->render();
 }
開發者ID:klando,項目名稱:pgpiwik,代碼行數:7,代碼來源:Controller.php

示例7: showLanguagesSelector

 function showLanguagesSelector()
 {
     $view = new Piwik_View("LanguagesManager/templates/languages.tpl");
     $view->languages = Piwik_LanguagesManager_API::getAvailableLanguageNames();
     $view->currentLanguageCode = self::getLanguageCodeForCurrentUser();
     $view->currentLanguageName = self::getLanguageNameForCurrentUser();
     echo $view->render();
 }
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:8,代碼來源:LanguagesManager.php

示例8: showLanguagesSelector

 /**
  * Show styled language selection drop-down list
  *
  * @param string $url The form action.  Default is to save language.
  */
 function showLanguagesSelector()
 {
     // don't use Piwik_View::factory() here
     $view = new Piwik_View("LanguagesManager/templates/languages.tpl");
     $view->languages = Piwik_LanguagesManager_API::getInstance()->getAvailableLanguageNames();
     $view->currentLanguageCode = self::getLanguageCodeForCurrentUser();
     $view->currentLanguageName = self::getLanguageNameForCurrentUser();
     Piwik_AddTopMenu('LanguageSelector', $view->render(), true, $order = 30, true);
 }
開發者ID:Gninety,項目名稱:Microweber,代碼行數:14,代碼來源:LanguagesManager.php

示例9: index

 public function index()
 {
     $view = new Piwik_View('Actions/index.tpl');
     /* Actions, Downloads, Outlinks */
     $view->dataTableActions = $this->getActions(true);
     $view->dataTableDownloads = $this->getDownloads(true);
     $view->dataTableOutlinks = $this->getOutlinks(true);
     echo $view->render();
 }
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:9,代碼來源:Controller.php

示例10: iframe

 function iframe()
 {
     $controllerName = Piwik_Common::getRequestVar('moduleToWidgetize');
     $actionName = Piwik_Common::getRequestVar('actionToWidgetize');
     $parameters = array($fetch = true);
     $outputDataTable = Piwik_FrontController::getInstance()->fetchDispatch($controllerName, $actionName, $parameters);
     $view = new Piwik_View('Widgetize/templates/iframe.tpl');
     $view->content = $outputDataTable;
     echo $view->render();
 }
開發者ID:klando,項目名稱:pgpiwik,代碼行數:10,代碼來源:Controller.php

示例11: displayJavascriptCode

 function displayJavascriptCode()
 {
     $idSite = Piwik_Common::getRequestVar('idsite', 1);
     Piwik::checkUserHasViewAccess($idSite);
     $jsTag = Piwik::getJavascriptCode($idSite, Piwik_Url::getCurrentUrlWithoutFileName());
     $view = new Piwik_View('SitesManager/templates/DisplayJavascriptCode.tpl');
     $view->menu = Piwik_GetAdminMenu();
     $view->jsTag = $jsTag;
     echo $view->render();
 }
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:10,代碼來源:Controller.php

示例12: index

 /** The plugin index */
 public function index()
 {
     $view = new Piwik_View('SiteSearch/templates/index.tpl');
     $view->evolution = $this->evolution(true);
     $view->keywords = $this->keywords(true);
     $view->noResults = $this->noResults(true);
     $view->searchPercentage = $this->searchPercentage(true);
     if (isset($this->date)) {
         $view->period = $this->range->getLocalizedLongString();
     }
     echo $view->render();
 }
開發者ID:BeezyT,項目名稱:piwik-sitesearch,代碼行數:13,代碼來源:Controller.php

示例13: feedburner

 /**
  * Simple feedburner statistics output
  *
  */
 function feedburner()
 {
     $view = new Piwik_View('ExampleFeedburner/templates/feedburner.tpl');
     $idSite = Piwik_Common::getRequestVar('idSite', 1, 'int');
     $feedburnerFeedName = Piwik_FetchOne('SELECT feedburnerName FROM ' . Piwik::prefixTable('site') . ' WHERE idsite = ?', $idSite);
     if (empty($feedburnerFeedName)) {
         $feedburnerFeedName = 'Piwik';
     }
     $view->feedburnerFeedName = $feedburnerFeedName;
     $view->idSite = $idSite;
     echo $view->render();
 }
開發者ID:klando,項目名稱:pgpiwik,代碼行數:16,代碼來源:ExampleFeedburner.php

示例14: index

 function index()
 {
     $view = new Piwik_View('UserSettings/templates/index.tpl');
     $view->dataTablePlugin = $this->getPlugin(true);
     $view->dataTableResolution = $this->getResolution(true);
     $view->dataTableConfiguration = $this->getConfiguration(true);
     $view->dataTableOS = $this->getOS(true);
     $view->dataTableBrowser = $this->getBrowser(true);
     $view->dataTableBrowserType = $this->getBrowserType(true);
     $view->dataTableWideScreen = $this->getWideScreen(true);
     echo $view->render();
 }
開發者ID:BackupTheBerlios,項目名稱:oos-svn,代碼行數:12,代碼來源:Controller.php

示例15: index

 function index()
 {
     Piwik::checkUserIsSuperUser();
     $listPlugins = Piwik_PluginsManager::getInstance()->readPluginsDirectory();
     $loadedPlugins = Piwik_PluginsManager::getInstance()->getLoadedPlugins();
     $plugins = array();
     foreach ($listPlugins as $pluginName) {
         $oPlugin = Piwik_PluginsManager::getInstance()->loadPlugin($pluginName);
         $plugins[$pluginName] = array('activated' => Piwik_PluginsManager::getInstance()->isPluginEnabled($pluginName), 'alwaysActivated' => Piwik_PluginsManager::getInstance()->isPluginAlwaysActivated($pluginName), 'info' => $oPlugin->getInformation());
     }
     $view = new Piwik_View('PluginsAdmin/templates/manage.tpl');
     $view->pluginsName = $plugins;
     echo $view->render();
 }
開發者ID:Doluci,項目名稱:tomatocart,代碼行數:14,代碼來源:Controller.php


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