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


PHP Library::__construct方法代码示例

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


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

示例1: __construct

 public function __construct($config = array())
 {
     parent::__construct();
     foreach ($config as $item => $value) {
         $this->{$item} = $value;
     }
 }
开发者ID:soremi,项目名称:tutornavi,代码行数:7,代码来源:local.php

示例2: __construct

 public function __construct($config = array())
 {
     parent::__construct();
     $this->config = $config;
     $this->config['driver'] = 'recaptcha';
     loader::library('captcha', $this->config);
 }
开发者ID:soremi,项目名称:tutornavi,代码行数:7,代码来源:recaptcha.php

示例3: __construct

 public function __construct($config = array())
 {
     parent::__construct();
     if (!empty($config['public_key']) && !empty($config['private_key'])) {
         $this->_public_key = $config['public_key'];
         $this->_private_key = $config['private_key'];
     }
 }
开发者ID:harme199497,项目名称:neofrag-cms,代码行数:8,代码来源:captcha.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->dao('configuracoes/modulosDao');
     $this->load->model('configuracoes/modulos/modulosModel');
     $this->load->model('configuracoes/modulos/paginasModel');
     $this->load->model('configuracoes/modulos/actionsModel');
     $this->load->model('configuracoes/modulos/niveisAcessoModel');
     $this->load->model('configuracoes/modulos/permissoesAcessoModel');
     if (isset($_SESSION['user'])) {
         $this->_usuario = unserialize($_SESSION['user']);
     }
 }
开发者ID:Wellingtoncezar,项目名称:pfc,代码行数:13,代码来源:menu.php

示例5: __construct

 public function __construct($config)
 {
     parent::__construct();
     $this->_itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
     $this->_salt = $config['salt'];
     $iteration_count_log2 = $config['iteration_count_log2'];
     if ($iteration_count_log2 < 4 || $iteration_count_log2 > 31) {
         $iteration_count_log2 = 8;
     }
     $this->_iteration_count_log2 = $iteration_count_log2;
     $this->_portable_hashes = $config['portable_hashes'];
     $this->_random_state = microtime();
     if (function_exists('getmypid')) {
         $this->_random_state .= getmypid();
     }
 }
开发者ID:agreements,项目名称:neofrag-cms,代码行数:16,代码来源:password.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:Wellingtoncezar,项目名称:pfc,代码行数:4,代码来源:checkPermissao.php

示例7: __construct

 public function __construct($config = array())
 {
     parent::__construct();
     $this->config = $config;
 }
开发者ID:soremi,项目名称:tutornavi,代码行数:5,代码来源:default.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_from = '"' . $this->config->nf_name . '" <' . $this->config->nf_contact . '>';
 }
开发者ID:agreements,项目名称:neofrag-cms,代码行数:5,代码来源:email.php

示例9: __construct

 /**
  * Object constructor.
  *
  * @param array $config
  *
  * @throws Exception\RequiresMemoryGetUsage
  */
 public function __construct($config = [])
 {
     // Merge the received config with the defaults
     $this->config = array_merge($config, $this->config);
     parent::__construct($config);
 }
开发者ID:hive,项目名称:benchmark,代码行数:13,代码来源:Object.php


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