当前位置: 首页>>代码示例>>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;未经允许,请勿转载。