db_Mysql::__construct PHP Method

__construct() public method

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