'params' => array(
// The default connection details are pulled from the Horde-wide SQL
// connection configuration.
- // To use another DB connection, you must define a Horde_Db_Adapter
- // object here.
+ // To use another DB connection, you must provide configuration
+ // information here - for example,
+ //'sql' => array('persistent' => true,
+ // 'username' => 'horde',
+ // 'password' => 'xxx',
+ // 'socket' => '/opt/local/var/run/mysql5/mysqld.sock',
+ // 'protocol' => 'unix',
+ // 'database' => 'horde',
+ // 'charset' => 'iso-8859-1',
+ // 'ssl' => false,
+ // 'splitread' => false,
+ // 'phptype' => 'mysql'),
'sql' => false,
'table' => 'turba_objects'
),
throw new Turba_Exception($e);
}
} else {
- $this->_db = $this->_params['sql'];
+ $this->_db = $GLOBALS['injector']->getInstance('Horde_Core_Factory_Db')->create('turba', $this->_params['sql']);
}
}