/** * Set the PDO object used by Idiorm to communicate with the database. * This is public in case the ORM should use a ready-instantiated * PDO object as its database connection. */ public static function set_db($db) { self::$_db = $db; self::_setup_identifier_quote_character(); }
/** * Delete all registered PDO objects in _db array. */ public static function reset_db() { self::$_db = array(); }