db_pdo::__construct PHP Méthode

__construct() public méthode

架构函数 读取数据库配置信息
public __construct ( array $config = '' )
$config array 数据库配置数组
    public function __construct($config = '')
    {
        if (!empty($config)) {
            $this->config = $config;
            if (empty($this->config['params'])) {
                $this->config['params'] = array();
            }
            $this->dbType = $this->_getDsnType($config['dsn']);
        }
    }