db_mysqli::__construct PHP Méthode

__construct() public méthode

架构函数 读取数据库配置信息
public __construct ( array $config = '' )
$config array 数据库配置数组
    public function __construct($config = '')
    {
        if (!extension_loaded('mysqli')) {
            //E(L('_NOT_SUPPERT_').':mysqli');
            throw new Exception('mysqli 不支持');
        }
        if (!empty($config)) {
            $this->config = $config;
            if (empty($this->config['params'])) {
                $this->config['params'] = '';
            }
        }
    }