/** * initialize the DAO object * * @param string $dsn the database connection string * @param int $debug the debug level for DB_DataObject * * @return void * @access private */ function init($dsn, $debug = 0) { $options =& PEAR::getStaticProperty('DB_DataObject', 'options'); $options = array('database' => $dsn); if ($debug) { CRM_Core_DAO::DebugLevel($debug); } }