/** * Get the portable object * @param string $dbtype * @return false|epDbPortable */ public static function &getPortable($dbtype) { // check if we have portability factory cached already if (!epObj2Sql::$dbpf) { include_once EP_SRC_DB . "/epDbPortable.php"; epObj2Sql::$dbpf = epDbPortFactory::instance(); } // get the portability object for the db if (!($dbp =& epObj2Sql::$dbpf->make($dbtype))) { return self::$false; } return $dbp; }
/** * Implement {@link epSingleton} interface * Forcefully destroy old instance (only used for tests). * After reset(), {@link instance()} returns a new instance. */ public static function destroy() { self::$instance = null; }