(bug 35885) remove api version string and parameter
API was using SVN's version keyword which GIT does not support. All related methods were either removed, or for those that could have been used from extensions, emptied out. api.php?version now shows unrecognized param warning. Change-Id: I910ca1448ed2ed697ac19b17c486d130aa1d7e03
This commit is contained in:
parent
6d5208cef5
commit
503cd2f4ae
91 changed files with 13 additions and 458 deletions
|
|
@ -178,6 +178,7 @@ production.
|
|||
* BREAKING CHANGE: '??_badcontinue' error code was changed to '??badcontinue'
|
||||
for all query modules.
|
||||
* ApiQueryBase adds 'badcontinue' error code if module has 'continue' parameter.
|
||||
* (bug 35885) Removed version parameter and all getVersion() methods.
|
||||
|
||||
=== Languages updated in 1.21 ===
|
||||
|
||||
|
|
|
|||
|
|
@ -112,8 +112,12 @@ abstract class ApiBase extends ContextSource {
|
|||
* Typically includes the class name, the svn revision, timestamp, and
|
||||
* last author. Usually done with SVN's Id keyword
|
||||
* @return string
|
||||
* @deprecated since 1.21, version string is no longer supported
|
||||
*/
|
||||
public abstract function getVersion();
|
||||
public function getVersion() {
|
||||
wfDeprecated( __METHOD__, '1.21' );
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the name of the module being executed by this instance
|
||||
|
|
@ -299,23 +303,6 @@ abstract class ApiBase extends ContextSource {
|
|||
}
|
||||
|
||||
$msg .= $this->makeHelpArrayToString( $lnPrfx, "Help page", $this->getHelpUrls() );
|
||||
|
||||
if ( $this->getMain()->getShowVersions() ) {
|
||||
$versions = $this->getVersion();
|
||||
$pattern = '/(\$.*) ([0-9a-z_]+\.php) (.*\$)/i';
|
||||
$callback = array( $this, 'makeHelpMsg_callback' );
|
||||
|
||||
if ( is_array( $versions ) ) {
|
||||
foreach ( $versions as &$v ) {
|
||||
$v = preg_replace_callback( $pattern, $callback, $v );
|
||||
}
|
||||
$versions = implode( "\n ", $versions );
|
||||
} else {
|
||||
$versions = preg_replace_callback( $pattern, $callback, $versions );
|
||||
}
|
||||
|
||||
$msg .= "Version:\n $versions\n";
|
||||
}
|
||||
}
|
||||
|
||||
return $msg;
|
||||
|
|
@ -488,44 +475,6 @@ abstract class ApiBase extends ContextSource {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback for preg_replace_callback() call in makeHelpMsg().
|
||||
* Replaces a source file name with a link to ViewVC
|
||||
*
|
||||
* @param $matches array
|
||||
* @return string
|
||||
*/
|
||||
public function makeHelpMsg_callback( $matches ) {
|
||||
global $wgAutoloadClasses, $wgAutoloadLocalClasses;
|
||||
|
||||
$file = '';
|
||||
if ( isset( $wgAutoloadLocalClasses[get_class( $this )] ) ) {
|
||||
$file = $wgAutoloadLocalClasses[get_class( $this )];
|
||||
} elseif ( isset( $wgAutoloadClasses[get_class( $this )] ) ) {
|
||||
$file = $wgAutoloadClasses[get_class( $this )];
|
||||
}
|
||||
|
||||
// Do some guesswork here
|
||||
$path = strstr( $file, 'includes/api/' );
|
||||
if ( $path === false ) {
|
||||
$path = strstr( $file, 'extensions/' );
|
||||
} else {
|
||||
$path = 'phase3/' . $path;
|
||||
}
|
||||
|
||||
// Get the filename from $matches[2] instead of $file
|
||||
// If they're not the same file, they're assumed to be in the
|
||||
// same directory
|
||||
// This is necessary to make stuff like ApiMain::getVersion()
|
||||
// returning the version string for ApiBase work
|
||||
if ( $path ) {
|
||||
return "{$matches[0]}\n https://svn.wikimedia.org/" .
|
||||
"viewvc/mediawiki/trunk/" . dirname( $path ) .
|
||||
"/{$matches[2]}";
|
||||
}
|
||||
return $matches[0];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the description string for this module
|
||||
* @return mixed string or array of strings
|
||||
|
|
@ -1691,12 +1640,4 @@ abstract class ApiBase extends ContextSource {
|
|||
}
|
||||
print "\n</pre>\n";
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a string that identifies the version of this class.
|
||||
* @return string
|
||||
*/
|
||||
public static function getBaseVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -265,8 +265,4 @@ class ApiBlock extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Block';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -172,8 +172,4 @@ class ApiComparePages extends ApiBase {
|
|||
'api.php?action=compare&fromrev=1&torev=2' => 'Create a diff between revision 1 and 2',
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -258,8 +258,4 @@ class ApiCreateAccount extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Account creation';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -267,8 +267,4 @@ class ApiDelete extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Delete';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,8 +63,4 @@ class ApiDisabled extends ApiBase {
|
|||
public function getExamples() {
|
||||
return array();
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -649,8 +649,4 @@ class ApiEditPage extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Edit';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -160,8 +160,4 @@ class ApiEmailUser extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:E-mail';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -130,8 +130,4 @@ class ApiExpandTemplates extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Parsing_wikitext#expandtemplates';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -213,8 +213,4 @@ class ApiFeedContributions extends ApiBase {
|
|||
'api.php?action=feedcontributions&user=Reedy',
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -233,8 +233,4 @@ class ApiFeedWatchlist extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Watchlist_feed';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -195,8 +195,4 @@ class ApiFileRevert extends ApiBase {
|
|||
=> 'Revert Wiki.png to the version of 20110305152740',
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -308,10 +308,6 @@ See the <a href='https://www.mediawiki.org/wiki/API'>complete documentation</a>,
|
|||
public function getDescription() {
|
||||
return $this->getIsHtml() ? ' (pretty-print in HTML)' : '';
|
||||
}
|
||||
|
||||
public static function getBaseVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -381,8 +377,4 @@ class ApiFormatFeedWrapper extends ApiFormatBase {
|
|||
ApiBase::dieDebug( __METHOD__, 'Invalid feed class/item' );
|
||||
}
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,8 +48,4 @@ class ApiFormatDbg extends ApiFormatBase {
|
|||
public function getDescription() {
|
||||
return 'Output data in PHP\'s var_export() format' . parent::getDescription();
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,8 +52,4 @@ class ApiFormatDump extends ApiFormatBase {
|
|||
public function getDescription() {
|
||||
return 'Output data in PHP\'s var_dump() format' . parent::getDescription();
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,8 +90,4 @@ class ApiFormatJson extends ApiFormatBase {
|
|||
return 'Output data in JSON format' . parent::getDescription();
|
||||
}
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,8 +44,4 @@ class ApiFormatNone extends ApiFormatBase {
|
|||
public function getDescription() {
|
||||
return 'Output nothing' . parent::getDescription();
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,8 +45,4 @@ class ApiFormatPhp extends ApiFormatBase {
|
|||
public function getDescription() {
|
||||
return 'Output data in serialized PHP format' . parent::getDescription();
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,8 +66,4 @@ class ApiFormatRaw extends ApiFormatBase {
|
|||
}
|
||||
$this->printText( $data['text'] );
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,8 +48,4 @@ class ApiFormatTxt extends ApiFormatBase {
|
|||
public function getDescription() {
|
||||
return 'Output data in PHP\'s print_r() format' . parent::getDescription();
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,8 +112,4 @@ class ApiFormatWddx extends ApiFormatBase {
|
|||
public function getDescription() {
|
||||
return 'Output data in WDDX format' . parent::getDescription();
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -248,8 +248,4 @@ class ApiFormatXml extends ApiFormatBase {
|
|||
public function getDescription() {
|
||||
return 'Output data in XML format' . parent::getDescription();
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,8 +37,4 @@ class ApiFormatYaml extends ApiFormatJson {
|
|||
public function getDescription() {
|
||||
return 'Output data in YAML format' . ApiFormatBase::getDescription();
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -151,8 +151,4 @@ class ApiHelp extends ApiBase {
|
|||
'https://www.mediawiki.org/wiki/API:Quick_start_guide',
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -186,10 +186,6 @@ class ApiImport extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Import';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -278,8 +278,4 @@ class ApiLogin extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Login';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,8 +75,4 @@ class ApiLogout extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Logout';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ class ApiMain extends ApiBase {
|
|||
private $mPrinter;
|
||||
|
||||
private $mModules, $mModuleNames, $mFormats, $mFormatNames;
|
||||
private $mResult, $mAction, $mShowVersions, $mEnableWrite;
|
||||
private $mResult, $mAction, $mEnableWrite;
|
||||
private $mInternalMode, $mSquidMaxage, $mModule;
|
||||
|
||||
private $mCacheMode = 'private';
|
||||
|
|
@ -188,7 +188,6 @@ class ApiMain extends ApiBase {
|
|||
$this->mFormatNames = array_keys( $this->mFormats );
|
||||
|
||||
$this->mResult = new ApiResult( $this );
|
||||
$this->mShowVersions = false;
|
||||
$this->mEnableWrite = $enableWrite;
|
||||
|
||||
$this->mSquidMaxage = - 1; // flag for executeActionWithErrorHandling()
|
||||
|
|
@ -681,7 +680,6 @@ class ApiMain extends ApiBase {
|
|||
|
||||
$params = $this->extractRequestParams();
|
||||
|
||||
$this->mShowVersions = $params['version'];
|
||||
$this->mAction = $params['action'];
|
||||
|
||||
if ( !is_string( $this->mAction ) ) {
|
||||
|
|
@ -968,7 +966,6 @@ class ApiMain extends ApiBase {
|
|||
ApiBase::PARAM_DFLT => 'help',
|
||||
ApiBase::PARAM_TYPE => $this->mModuleNames
|
||||
),
|
||||
'version' => false,
|
||||
'maxlag' => array(
|
||||
ApiBase::PARAM_TYPE => 'integer'
|
||||
),
|
||||
|
|
@ -995,7 +992,6 @@ class ApiMain extends ApiBase {
|
|||
return array(
|
||||
'format' => 'The format of the output',
|
||||
'action' => 'What action you would like to perform. See below for module help',
|
||||
'version' => 'When showing help, include version for each module',
|
||||
'maxlag' => array(
|
||||
'Maximum lag can be used when MediaWiki is installed on a database replicated cluster.',
|
||||
'To save actions causing any more site replication lag, this parameter can make the client',
|
||||
|
|
@ -1111,8 +1107,7 @@ class ApiMain extends ApiBase {
|
|||
$this->setHelp();
|
||||
// Get help text from cache if present
|
||||
$key = wfMemcKey( 'apihelp', $this->getModuleName(),
|
||||
SpecialVersion::getVersion( 'nodb' ) .
|
||||
$this->getShowVersions() );
|
||||
SpecialVersion::getVersion( 'nodb' ) );
|
||||
if ( $wgAPICacheHelpTimeout > 0 ) {
|
||||
$cached = $wgMemc->get( $key );
|
||||
if ( $cached ) {
|
||||
|
|
@ -1202,25 +1197,11 @@ class ApiMain extends ApiBase {
|
|||
/**
|
||||
* Check whether the user wants us to show version information in the API help
|
||||
* @return bool
|
||||
* @deprecated since 1.21, always returns false
|
||||
*/
|
||||
public function getShowVersions() {
|
||||
return $this->mShowVersions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the version information of this file, plus it includes
|
||||
* the versions for all files that are not callable proper API modules
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getVersion() {
|
||||
$vers = array();
|
||||
$vers[] = 'MediaWiki: ' . SpecialVersion::getVersion() . "\n https://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/";
|
||||
$vers[] = __CLASS__ . ': $Id$';
|
||||
$vers[] = ApiBase::getBaseVersion();
|
||||
$vers[] = ApiFormatBase::getBaseVersion();
|
||||
$vers[] = ApiQueryBase::getBaseVersion();
|
||||
return $vers;
|
||||
wfDeprecated( __METHOD__, '1.21' );
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -302,8 +302,4 @@ class ApiMove extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Move';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -123,8 +123,4 @@ class ApiOpenSearch extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Opensearch';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -202,8 +202,4 @@ class ApiOptions extends ApiBase {
|
|||
'api.php?action=options&reset=&change=skin=monobook&optionname=nickname&optionvalue=[[User:Beau|Beau]]%20([[User_talk:Beau|talk]])&token=123ABC',
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -791,8 +791,4 @@ class ApiPageSet extends ApiQueryBase {
|
|||
array( 'code' => 'multisource', 'info' => "Cannot use 'revids' at the same time as 'dataSource'" ),
|
||||
) );
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,10 +114,10 @@ class ApiParamInfo extends ApiBase {
|
|||
$result = $this->getResult();
|
||||
$retval['classname'] = get_class( $obj );
|
||||
$retval['description'] = implode( "\n", (array)$obj->getFinalDescription() );
|
||||
|
||||
$retval['examples'] = '';
|
||||
|
||||
$retval['version'] = implode( "\n", (array)$obj->getVersion() );
|
||||
// version is deprecated since 1.21, but needs to be returned for v1
|
||||
$retval['version'] = '';
|
||||
$retval['prefix'] = $obj->getModulePrefix();
|
||||
|
||||
if ( $obj->isReadMode() ) {
|
||||
|
|
@ -366,8 +366,4 @@ class ApiParamInfo extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Parameter_information';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -671,8 +671,4 @@ class ApiParse extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Parsing_wikitext#parse';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -120,8 +120,4 @@ class ApiPatrol extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Patrol';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -234,8 +234,4 @@ class ApiProtect extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Protect';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -187,8 +187,4 @@ class ApiPurge extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Purge';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -776,12 +776,4 @@ class ApiQuery extends ApiBase {
|
|||
'https://www.mediawiki.org/wiki/API:Lists',
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
$psModule = new ApiPageSet( $this );
|
||||
$vers = array();
|
||||
$vers[] = __CLASS__ . ': $Id$';
|
||||
$vers[] = $psModule->getVersion();
|
||||
return $vers;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -231,8 +231,4 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Allcategories';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -405,8 +405,4 @@ class ApiQueryAllImages extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Allimages';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -297,8 +297,4 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return "https://www.mediawiki.org/wiki/API:All{$this->descriptionLink}s";
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -291,8 +291,4 @@ class ApiQueryAllMessages extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Meta#allmessages_.2F_am';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -355,8 +355,4 @@ class ApiQueryAllPages extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Allpages';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -444,8 +444,4 @@ class ApiQueryAllUsers extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Allusers';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -555,8 +555,4 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return $this->helpUrl;
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -578,14 +578,6 @@ abstract class ApiQueryBase extends ApiBase {
|
|||
}
|
||||
return $errors;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get version string for use in the API help output
|
||||
* @return string
|
||||
*/
|
||||
public static function getBaseVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -404,8 +404,4 @@ class ApiQueryBlocks extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Blocks';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -273,8 +273,4 @@ class ApiQueryCategories extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Properties#categories_.2F_cl';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -146,8 +146,4 @@ class ApiQueryCategoryInfo extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Properties#categoryinfo_.2F_ci';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -413,8 +413,4 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Categorymembers';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -421,8 +421,4 @@ class ApiQueryDeletedrevs extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Deletedrevs';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,8 +61,4 @@ class ApiQueryDisabled extends ApiQueryBase {
|
|||
public function getExamples() {
|
||||
return array();
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -211,8 +211,4 @@ class ApiQueryDuplicateFiles extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Properties#duplicatefiles_.2F_df';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -272,8 +272,4 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Exturlusage';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -166,8 +166,4 @@ class ApiQueryExternalLinks extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Properties#extlinks_.2F_el';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -374,8 +374,4 @@ class ApiQueryFilearchive extends ApiQueryBase {
|
|||
),
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -239,8 +239,4 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase {
|
|||
'api.php?action=query&generator=iwbacklinks&giwbltitle=Test&giwblprefix=wikibooks&prop=info'
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -192,8 +192,4 @@ class ApiQueryIWLinks extends ApiQueryBase {
|
|||
'api.php?action=query&prop=iwlinks&titles=Main%20Page' => 'Get interwiki links from the [[Main Page]]',
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -703,8 +703,4 @@ class ApiQueryImageInfo extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Properties#imageinfo_.2F_ii';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -192,8 +192,4 @@ class ApiQueryImages extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Properties#images_.2F_im';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -816,8 +816,4 @@ class ApiQueryInfo extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Properties#info_.2F_in';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -239,8 +239,4 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase {
|
|||
'api.php?action=query&generator=langbacklinks&glbltitle=Test&glbllang=fr&prop=info'
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -188,8 +188,4 @@ class ApiQueryLangLinks extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Properties#langlinks_.2F_ll';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -247,8 +247,4 @@ class ApiQueryLinks extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return $this->helpUrl;
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -545,8 +545,4 @@ class ApiQueryLogEvents extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Logevents';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -146,8 +146,4 @@ class ApiQueryPageProps extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Properties#pageprops_.2F_pp';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -264,8 +264,4 @@ class ApiQueryProtectedTitles extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Protectedtitles';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -220,8 +220,4 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase {
|
|||
'api.php?action=query&list=querypage&qppage=Ancientpages'
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -183,8 +183,4 @@ class ApiQueryRandom extends ApiQueryGeneratorBase {
|
|||
public function getExamples() {
|
||||
return 'api.php?action=query&list=random&rnnamespace=0&rnlimit=2';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id: ApiQueryRandom.php overlordq$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -736,8 +736,4 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Recentchanges';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -854,8 +854,4 @@ class ApiQueryRevisions extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Properties#revisions_.2F_rv';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -359,8 +359,4 @@ class ApiQuerySearch extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Search';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -667,8 +667,4 @@ class ApiQuerySiteinfo extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Meta#siteinfo_.2F_si';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,9 +138,5 @@ class ApiQueryStashImageInfo extends ApiQueryImageInfo {
|
|||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -195,8 +195,4 @@ class ApiQueryTags extends ApiQueryBase {
|
|||
'api.php?action=query&list=tags&tgprop=displayname|description|hitcount'
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -543,8 +543,4 @@ class ApiQueryContributions extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Usercontribs';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -303,8 +303,4 @@ class ApiQueryUserInfo extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Meta#userinfo_.2F_ui';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -396,8 +396,4 @@ class ApiQueryUsers extends ApiQueryBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Users';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -518,8 +518,4 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Watchlist';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -222,8 +222,4 @@ class ApiQueryWatchlistRaw extends ApiQueryGeneratorBase {
|
|||
'api.php?action=query&generator=watchlistraw&gwrshow=changed&prop=revisions',
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -367,8 +367,4 @@ class ApiResult extends ApiBase {
|
|||
public function execute() {
|
||||
ApiBase::dieDebug( __METHOD__, 'execute() is not supported on Result object' );
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -205,8 +205,4 @@ class ApiRollback extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Rollback';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -155,10 +155,6 @@ class ApiRsd extends ApiBase {
|
|||
}
|
||||
return $outputData;
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
||||
class ApiFormatXmlRsd extends ApiFormatXml {
|
||||
|
|
@ -170,8 +166,4 @@ class ApiFormatXmlRsd extends ApiFormatXml {
|
|||
public function getMimeType() {
|
||||
return 'application/rsd+xml';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -278,8 +278,4 @@ class ApiSetNotificationTimestamp extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:SetNotificationTimestamp';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -151,8 +151,4 @@ class ApiTokens extends ApiBase {
|
|||
'api.php?action=tokens&type=email|move' => 'Retrieve an email token and a move token'
|
||||
);
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -178,8 +178,4 @@ class ApiUnblock extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Block';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -176,8 +176,4 @@ class ApiUndelete extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Undelete';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -843,8 +843,4 @@ class ApiUpload extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Upload';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -141,8 +141,4 @@ class ApiUserrights extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:User_group_membership';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -151,8 +151,4 @@ class ApiWatch extends ApiBase {
|
|||
public function getHelpUrls() {
|
||||
return 'https://www.mediawiki.org/wiki/API:Watch';
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
return __CLASS__ . ': $Id$';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue