本文整理汇总了PHP中Lib::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Lib::__construct方法的具体用法?PHP Lib::__construct怎么用?PHP Lib::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Lib
的用法示例。
在下文中一共展示了Lib::__construct方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
function __construct()
{
parent::__construct();
$servers = array();
foreach ($this->e->mcache->servers as $server) {
$servers[] = array($server->host, $server->port, $server->weight);
}
$this->_conn = new Memcached();
$this->_conn->addServers($servers);
}
示例2: array
function __construct()
{
parent::__construct();
$servers = array();
foreach ($this->e->mcache['servers'] as $server) {
$servers[] = array($server['host'], $server['port'], $server['weight']);
}
$this->_conn = new Memcached();
$this->_conn->addServers($servers);
}
示例3: array
function __construct()
{
parent::__construct();
$this->_post = $_POST;
$this->_rules = array();
$this->_errors = array();
$this->_min_len_rules = array();
$this->_max_len_rules = array();
$this->_valid_mail_rules = array();
$this->_curname = '';
}
示例4: __construct
public function __construct($installation_data)
{
parent::__construct($installation_data);
require SYS_PATH . '/libraries/spyc/spyc.php';
self::$_parser = new Spyc();
}