close(); } /* * Return the database instance object, creating it if this is the * first call to this function. This function will need maintained * as new DBMSs are supported. */ public static function getInstance() : database { // TODO } /* * These functions are to be implemented by DBMS extensions, * providing a uniform interface to database engines. */ public abstract function close() : void; public abstract function query(string $query) : array; public abstract function esc(string $str) : string; } ?>