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


PHP Factory::getParameters方法代码示例

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


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

示例1: parse

 public static function parse()
 {
     if (!self::$mConfigData) {
         $params = Factory::getParameters();
         $file = isset($params['conf']) ? $params['conf'] : DIR_CONF . '/peel.conf';
         self::$mConfigData = parse_ini_file($file, true, INI_SCANNER_NORMAL);
         self::$mConfigData['config_file_path'] = $file;
         self::$mConfigData['config_directory'] = dirname($file);
         self::createDirectories();
         self::parsePeelers();
     }
     return self::$mConfigData;
 }
开发者ID:espena,项目名称:peel,代码行数:13,代码来源:configuration_file.inc.php

示例2: run

 /**
  * Run application.
  *
  * Starts application execution.
  *
  * @return void
  */
 public function run()
 {
     $this->mBase->run();
     $c = $this->getConfig();
     $p = Factory::getParameters();
     $peelerToEnable = isset($p['e']) ? $p['e'] : (isset($p['enable']) ? $p['enable'] : '');
     $peelerToDisable = isset($p['d']) ? $p['d'] : (isset($p['disable']) ? $p['disable'] : '');
     $this->mPathPeelersAvailable = $this->resolvePath($c, 'dir_available');
     $this->mPathPeelersEnabled = $this->resolvePath($c, 'dir_enabled');
     $this->enablePeeler($peelerToEnable);
     $this->disablePeeler($peelerToDisable);
 }
开发者ID:espena,项目名称:peel,代码行数:19,代码来源:app_enabler.inc.php

示例3: define

define('PROFILE_MOD', MODULES . 'profile/');
define('REGISTRATION_MOD', MODULES . 'signup/');
define('WATCH_VIDEO_MOD', MODULES . 'video_watch/');
define('UTILS', LIB . 'utils/');
define('INTERFACES', UTILS . 'interfaces/');
define('VIDEO_UPLOAD_MOD', MODULES . 'video_upload/');
define('VIDEO_SEARCH_MOD', MODULES . 'search/');
define('TMP_VIDEO', LIB . 'tmp_video/');
setReporting(true);
////ALWAYS SET THIS TO 'FALSE' BEFORE DEPLOYING
/** AutoLoad class files as soon as needed ***/
spl_autoload_register('loadClass');
include_once CONFIG . 'settings.php';
$registry = new Registry();
Factory::getRegistry($registry);
Factory::getParameters($parameters);
//parameter is defined in the settings file
// URI will always be of the form /specific_path
$request = $_SERVER["REQUEST_URI"];
$path = explode("/", $request);
$controller_obj = null;
switch ($path[1]) {
    case '':
        $controller_obj = new HomeController($path, $registry);
        $controller_obj->process($_POST);
        break;
    case 'admin':
        $controller_obj = new AdminController($path, $registry);
        $controller_obj->process($_POST);
        break;
    case 'categories':
开发者ID:General-ZOD,项目名称:eduvideo,代码行数:31,代码来源:index.php


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