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


PHP StatusNet::loadConfigFile方法代碼示例

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


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

示例1: init

 /**
  * Initialize, or re-initialize, StatusNet global configuration
  * and plugins.
  *
  * If switching site configurations during script execution, be
  * careful when working with leftover objects -- global settings
  * affect many things and they may not behave as you expected.
  *
  * @param $server optional web server hostname for picking config
  * @param $path optional URL path for picking config
  * @param $conffile optional configuration file path
  *
  * @throws NoConfigException if config file can't be found
  */
 public static function init($server = null, $path = null, $conffile = null)
 {
     StatusNet::initDefaults($server, $path);
     StatusNet::loadConfigFile($conffile);
     // Load settings from database; note we need autoload for this
     Config::loadSettings();
     self::initPlugins();
 }
開發者ID:stevertiqo,項目名稱:StatusNet,代碼行數:22,代碼來源:statusnet.php

示例2: init

 /**
  * Initialize, or re-initialize, StatusNet global configuration
  * and plugins.
  *
  * If switching site configurations during script execution, be
  * careful when working with leftover objects -- global settings
  * affect many things and they may not behave as you expected.
  *
  * @param $server optional web server hostname for picking config
  * @param $path optional URL path for picking config
  * @param $conffile optional configuration file path
  *
  * @throws NoConfigException if config file can't be found
  */
 public static function init($server = null, $path = null, $conffile = null)
 {
     Router::clear();
     StatusNet::initDefaults($server, $path);
     StatusNet::loadConfigFile($conffile);
     $sprofile = common_config('site', 'profile');
     if (!empty($sprofile)) {
         StatusNet::loadSiteProfile($sprofile);
     }
     // Load settings from database; note we need autoload for this
     Config::loadSettings();
     self::initPlugins();
 }
開發者ID:Grasia,項目名稱:bolotweet,代碼行數:27,代碼來源:statusnet.php


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