本文整理汇总了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;
}
}
示例2: __construct
public function __construct($config = array())
{
parent::__construct();
$this->config = $config;
$this->config['driver'] = 'recaptcha';
loader::library('captcha', $this->config);
}
示例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'];
}
}
示例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']);
}
}
示例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();
}
}
示例6: __construct
public function __construct()
{
parent::__construct();
}
示例7: __construct
public function __construct($config = array())
{
parent::__construct();
$this->config = $config;
}
示例8: __construct
public function __construct()
{
parent::__construct();
$this->_from = '"' . $this->config->nf_name . '" <' . $this->config->nf_contact . '>';
}
示例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);
}