Horde_Db_Adapter_Base::__construct PHP Method

__construct() public method

Constructor.
public __construct ( array $config )
$config array Configuration options and optional objects:
'charset' - (string) TODO
    public function __construct($config)
    {
        /* Can't set cache/logger in constructor - these objects may use DB
         * for storage. Add stubs for now - they have to be manually set
         * later with setCache() and setLogger(). */
        $this->_cache = new Horde_Support_Stub();
        $this->_logger = new Horde_Support_Stub();
        // Default to UTF-8
        if (!isset($config['charset'])) {
            $config['charset'] = 'UTF-8';
        }
        $this->_config = $config;
        $this->_runtime = 0;
        if (!$this->_schemaClass) {
            $this->_schemaClass = __CLASS__ . '_Schema';
        }
        $this->connect();
    }