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


PHP Help::listByPage方法代码示例

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


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

示例1: __construct

 public function __construct($cache = false, $cacheLiftime = 3600)
 {
     global $USER, $ADMIN, $FORETAG, $urlHandler, $security, $adressbok, $urlChecker, $db, $sajtDelarObj;
     $this->template_dir = ROOT . '/templates';
     $this->compile_dir = ROOT . '/templates_c';
     $this->config_dir = ROOT . '/php/libs/smarty/configs';
     $this->cache_dir = ROOT . '/php/libs/smarty/cache';
     // Visar t.ex. trunkomera.se ist�llet f�r MotioMera, om s� �r fallet.
     if ($_SERVER['HTTP_HOST'] != 'motiomera.se') {
         $this->assign("pagename", ucfirst($_SERVER['HTTP_HOST']));
     } else {
         $this->assign("pagename", "MotioMera");
     }
     if (defined('DEBUG_SMARTY') && DEBUG_SMARTY) {
         $this->assign('debugSmarty', true);
     }
     //$this->assign("pagename", "MotioMera");
     $this->assign("microtime", Misc::get_milliseconds(true));
     $this->assign("_GET", $_GET);
     $this->assign("_POST", $_POST);
     $this->assign("_SERVER", $_SERVER);
     $this->assign("urlHandler", $urlHandler);
     $this->assign("sajtDelarObj", $sajtDelarObj);
     $this->assign("urlChecker", $urlChecker);
     $this->assign("security", $security);
     $this->assign("GOOGLEMAPS_APIKEY", GOOGLEMAPS_APIKEY);
     $this->assign("DEBUG", DEBUG);
     $this->contentCacheLifetime = $cacheLiftime;
     $this->compile_check = true;
     //the rss flow from mabra.com
     $file = ROOT . "/files/rsscache/motiofeed.txt";
     $fh = fopen($file, "r") or die("cant open file");
     $smotiofeed = file_get_contents($file);
     fclose($fh);
     $rss = unserialize($smotiofeed);
     $this->assign("rss", $rss);
     if ($cache) {
         $this->caching = 2;
     } else {
         $this->caching = false;
     }
     $this->assign("BROWSER", Medlem::getCurrentBrowserVersion(true));
     $helpers = Help::listByPage($_SERVER['PHP_SELF']);
     $this->assign("helpers", $helpers);
     $this->assign('currentPage', Misc::getCurrentPage());
     if ($USER) {
         $this->assign("USER", $USER);
         $this->assign("adressbok", $adressbok);
     }
     if ($ADMIN) {
         $this->assign("ADMIN", $ADMIN);
         $this->assign("inAdmin", true);
     }
     if ($FORETAG) {
         $this->assign("FORETAG", $FORETAG);
     }
     $this->register_function('stegToKm', array('Steg', 'stegToKm'));
 }
开发者ID:krillo,项目名称:motiomera,代码行数:58,代码来源:MMSmarty.php


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