* @return DerivativeContext
*/
public function createContext() {
+ wfDeprecated( __METHOD__, '1.19' );
return new DerivativeContext( $this->getContext() );
}
// This is necessary to make stuff like ApiMain::getVersion()
// returning the version string for ApiBase work
if ( $path ) {
- return "{$matches[0]}\n http://svn.wikimedia.org/" .
+ return "{$matches[0]}\n https://svn.wikimedia.org/" .
"viewvc/mediawiki/trunk/" . dirname( $path ) .
"/{$matches[2]}";
}
*/
public function getFinalDescription() {
$desc = $this->getDescription();
- wfRunHooks( 'ApiGetDescription', array( &$this, &$desc ) );
+ wfRunHooks( 'APIGetDescription', array( &$this, &$desc ) );
return $desc;
}
* @return array
*/
public static function getValidNamespaces() {
+ wfDeprecated( __METHOD__, '1.17' );
return MWNamespace::getValidNamespaces();
}
return $this->mDBTime;
}
+ /**
+ * @return DatabaseBase
+ */
+ protected function getDB() {
+ return wfGetDB( DB_SLAVE, 'api' );
+ }
+
/**
* Debugging function that prints a value and an optional backtrace
* @param $value mixed Value to print