/**
* Returns a wikitext link to the DB's website, e.g.,
* return "[http://www.mysql.com/ MySQL]";
- * Should probably be overridden to at least contain plain text, if for
- * some reason your database has no website.
+ * Should at least contain plain text, if for some reason
+ * your database has no website.
*
* @return String: wikitext of a link to the server software's web site
*/
- function getSoftwareLink() {
- return '(no software link given)';
- }
+ abstract function getSoftwareLink();
/**
* Returns the database type for user-visible purposes
* e.g. DB error messages
* Other uses should just use $wgDBtype
*
- * @return String: Database name for messages
+ * @return String: Database type for use in messages
*/
- function getDBtype() {
- return 'Database';
- }
+ abstract function getDBtypeForMsg();
/**
* A string describing the current software version, like from
if ( $this->useMessageCache() ) {
return wfMsg( 'dberrortextcl', htmlspecialchars( $this->getSQL() ),
htmlspecialchars( $this->fname ), $this->errno, htmlspecialchars( $this->error ),
- htmlspecialchars( $this->db->getDBtype() ) ) . "\n";
+ htmlspecialchars( $this->db->getDBtypeForMsg() ) ) . "\n";
} else {
return $this->getMessage();
}
if ( $this->useMessageCache() ) {
return wfMsgNoDB( 'dberrortext', htmlspecialchars( $this->getSQL() ),
htmlspecialchars( $this->fname ), $this->errno, htmlspecialchars( $this->error ),
- htmlspecialchars( $this->db->getDBtype() ) );
+ htmlspecialchars( $this->db->getDBtypeForMsg() ) );
} else {
return nl2br( htmlspecialchars( $this->getMessage() ) );
}
return "[http://www.oracle.com/ Oracle]";
}
+ /**
+ * @return String: Database type for use in messages
+ */
+ function getDBtypeForMsg() {
+ return 'Oracle';
+ }
+
/**
* @return string Version information from the database
*/
return oci_server_version($this->mConn);
}
- /**
- * @return String: Database name for messages
- */
- function getDBtype() {
- return 'Oracle';
- }
-
/**
* Query whether a given table exists (in the given schema, or the default mw one if not given)
*/