Create includes/api/query for Query API and includes/api/edit for Edit API

This commit is contained in:
Victor Vasiliev 2007-12-06 18:22:15 +00:00
parent e754912024
commit 4e4cdf079e
35 changed files with 72 additions and 70 deletions

View file

@ -317,45 +317,47 @@ function __autoload($className) {
'ApiOpenSearch' => 'includes/api/ApiOpenSearch.php',
'ApiPageSet' => 'includes/api/ApiPageSet.php',
'ApiParse' => 'includes/api/ApiParse.php',
'ApiQuery' => 'includes/api/ApiQuery.php',
'ApiQueryAllpages' => 'includes/api/ApiQueryAllpages.php',
'ApiQueryAllLinks' => 'includes/api/ApiQueryAllLinks.php',
'ApiQueryAllUsers' => 'includes/api/ApiQueryAllUsers.php',
'ApiQueryBase' => 'includes/api/ApiQueryBase.php',
'ApiQueryGeneratorBase' => 'includes/api/ApiQueryBase.php',
'ApiQueryBacklinks' => 'includes/api/ApiQueryBacklinks.php',
'ApiQueryCategories' => 'includes/api/ApiQueryCategories.php',
'ApiQueryCategoryMembers' => 'includes/api/ApiQueryCategoryMembers.php',
'ApiQueryContributions' => 'includes/api/ApiQueryUserContributions.php',
'ApiQueryExternalLinks' => 'includes/api/ApiQueryExternalLinks.php',
'ApiQueryExtLinksUsage' => 'includes/api/ApiQueryExtLinksUsage.php',
'ApiQueryImages' => 'includes/api/ApiQueryImages.php',
'ApiQueryImageInfo' => 'includes/api/ApiQueryImageInfo.php',
'ApiQueryInfo' => 'includes/api/ApiQueryInfo.php',
'ApiQueryLangLinks' => 'includes/api/ApiQueryLangLinks.php',
'ApiQueryLinks' => 'includes/api/ApiQueryLinks.php',
'ApiQueryLogEvents' => 'includes/api/ApiQueryLogEvents.php',
'ApiQueryRecentChanges'=> 'includes/api/ApiQueryRecentChanges.php',
'ApiQueryRevisions' => 'includes/api/ApiQueryRevisions.php',
'ApiQuerySearch' => 'includes/api/ApiQuerySearch.php',
'ApiQueryAllmessages' => 'includes/api/ApiQueryAllmessages.php',
'ApiQuerySiteinfo' => 'includes/api/ApiQuerySiteinfo.php',
'ApiQueryUserInfo' => 'includes/api/ApiQueryUserInfo.php',
'ApiQueryWatchlist' => 'includes/api/ApiQueryWatchlist.php',
'ApiRender' => 'includes/api/ApiRender.php',
'ApiResult' => 'includes/api/ApiResult.php',
# apiedit branch
'ApiBlock' => 'includes/api/ApiBlock.php',
'ApiChangeRights' => 'includes/api/ApiChangeRights.php',
'ApiDelete' => 'includes/api/ApiDelete.php',
'ApiMove' => 'includes/api/ApiMove.php',
'ApiProtect' => 'includes/api/ApiProtect.php',
'ApiQueryBlocks' => 'includes/api/ApiQueryBlocks.php',
'ApiQueryDeletedrevs' => 'includes/api/ApiQueryDeletedrevs.php',
'ApiRollback' => 'includes/api/ApiRollback.php',
'ApiUnblock' => 'includes/api/ApiUnblock.php',
'ApiUndelete' => 'includes/api/ApiUndelete.php'
# Query API
'ApiQuery' => 'includes/api/query/ApiQuery.php',
'ApiQueryAllpages' => 'includes/api/query/ApiQueryAllpages.php',
'ApiQueryAllLinks' => 'includes/api/query/ApiQueryAllLinks.php',
'ApiQueryAllUsers' => 'includes/api/query/ApiQueryAllUsers.php',
'ApiQueryBase' => 'includes/api/query/ApiQueryBase.php',
'ApiQueryGeneratorBase' => 'includes/api/query/ApiQueryBase.php',
'ApiQueryBlocks' => 'includes/api/query/ApiQueryBlocks.php',
'ApiQueryBacklinks' => 'includes/api/query/ApiQueryBacklinks.php',
'ApiQueryCategories' => 'includes/api/query/ApiQueryCategories.php',
'ApiQueryCategoryMembers' => 'includes/api/query/ApiQueryCategoryMembers.php',
'ApiQueryContributions' => 'includes/api/query/ApiQueryUserContributions.php',
'ApiQueryDeletedrevs' => 'includes/api/query/ApiQueryDeletedrevs.php',
'ApiQueryExternalLinks' => 'includes/api/query/ApiQueryExternalLinks.php',
'ApiQueryExtLinksUsage' => 'includes/api/query/ApiQueryExtLinksUsage.php',
'ApiQueryImages' => 'includes/api/query/ApiQueryImages.php',
'ApiQueryImageInfo' => 'includes/api/query/ApiQueryImageInfo.php',
'ApiQueryInfo' => 'includes/api/query/ApiQueryInfo.php',
'ApiQueryLangLinks' => 'includes/api/query/ApiQueryLangLinks.php',
'ApiQueryLinks' => 'includes/api/query/ApiQueryLinks.php',
'ApiQueryLogEvents' => 'includes/api/query/ApiQueryLogEvents.php',
'ApiQueryRecentChanges'=> 'includes/api/query/ApiQueryRecentChanges.php',
'ApiQueryRevisions' => 'includes/api/query/ApiQueryRevisions.php',
'ApiQuerySearch' => 'includes/api/query/ApiQuerySearch.php',
'ApiQueryAllmessages' => 'includes/api/query/ApiQueryAllmessages.php',
'ApiQuerySiteinfo' => 'includes/api/query/ApiQuerySiteinfo.php',
'ApiQueryUserInfo' => 'includes/api/query/ApiQueryUserInfo.php',
'ApiQueryWatchlist' => 'includes/api/query/ApiQueryWatchlist.php',
# API edit functions
'ApiBlock' => 'includes/api/edit/ApiBlock.php',
'ApiChangeRights' => 'includes/api/edit/ApiChangeRights.php',
'ApiDelete' => 'includes/api/edit/ApiDelete.php',
'ApiMove' => 'includes/api/edit/ApiMove.php',
'ApiProtect' => 'includes/api/edit/ApiProtect.php',
'ApiRollback' => 'includes/api/edit/ApiRollback.php',
'ApiUnblock' => 'includes/api/edit/ApiUnblock.php',
'ApiUndelete' => 'includes/api/edit/ApiUndelete.php'
);
wfProfileIn( __METHOD__ );

View file

@ -159,6 +159,6 @@ class ApiBlock extends ApiBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiBlock.php 28209 2007-12-06 16:06:22Z vasilievvv $';
}
}

View file

@ -165,6 +165,6 @@ class ApiChangeRights extends ApiBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiChangeRights.php 28209 2007-12-06 16:06:22Z vasilievvv $';
}
}

View file

@ -167,6 +167,6 @@ class ApiDelete extends ApiBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiDelete.php 28209 2007-12-06 16:06:22Z vasilievvv $';
}
}

View file

@ -176,6 +176,6 @@ class ApiMove extends ApiBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiMove.php 28209 2007-12-06 16:06:22Z vasilievvv $';
}
}

View file

@ -137,6 +137,6 @@ class ApiProtect extends ApiBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiProtect.php 28209 2007-12-06 16:06:22Z vasilievvv $';
}
}

View file

@ -151,6 +151,6 @@ class ApiRollback extends ApiBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiRollback.php 28209 2007-12-06 16:06:22Z vasilievvv $';
}
}

View file

@ -125,6 +125,6 @@ class ApiUnblock extends ApiBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiUnblock.php 28209 2007-12-06 16:06:22Z vasilievvv $';
}
}

View file

@ -124,6 +124,6 @@ class ApiUndelete extends ApiBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiUndelete.php 28209 2007-12-06 16:06:22Z vasilievvv $';
}
}

View file

@ -493,7 +493,7 @@ class ApiQuery extends ApiBase {
public function getVersion() {
$psModule = new ApiPageSet($this);
$vers = array ();
$vers[] = __CLASS__ . ': $Id$';
$vers[] = __CLASS__ . ': $Id: ApiQuery.php 28051 2007-12-02 14:24:07Z catrope $';
$vers[] = $psModule->getVersion();
return $vers;
}

View file

@ -174,6 +174,6 @@ class ApiQueryAllLinks extends ApiQueryGeneratorBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryAllLinks.php 24453 2007-07-30 08:09:15Z yurik $';
}
}

View file

@ -206,6 +206,6 @@ class ApiQueryAllUsers extends ApiQueryBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryAllUsers.php 26953 2007-10-26 03:48:58Z amidaniel $';
}
}

View file

@ -115,6 +115,6 @@ class ApiQueryAllmessages extends ApiQueryBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryAllmessages.php 28027 2007-12-01 17:04:13Z vasilievvv $';
}
}

View file

@ -228,7 +228,7 @@ class ApiQueryAllpages extends ApiQueryGeneratorBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryAllpages.php 26725 2007-10-15 13:50:43Z catrope $';
}
}

View file

@ -387,7 +387,7 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryBacklinks.php 27562 2007-11-16 22:50:59Z brion $';
}
}

View file

@ -226,7 +226,7 @@ abstract class ApiQueryBase extends ApiBase {
}
public static function getBaseVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryBase.php 24533 2007-08-01 22:46:22Z yurik $';
}
}

View file

@ -236,6 +236,6 @@ class ApiQueryBlocks extends ApiQueryBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryBlocks.php 28209 2007-12-06 16:06:22Z vasilievvv $';
}
}

View file

@ -151,7 +151,7 @@ class ApiQueryCategories extends ApiQueryGeneratorBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryCategories.php 24092 2007-07-14 19:04:31Z yurik $';
}
}

View file

@ -240,7 +240,7 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryCategoryMembers.php 25726 2007-09-10 14:17:33Z catrope $';
}
}

View file

@ -225,6 +225,6 @@ class ApiQueryDeletedrevs extends ApiQueryBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryDeletedrevs.php 28209 2007-12-06 16:06:22Z vasilievvv $';
}
}

View file

@ -195,6 +195,6 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryExtLinksUsage.php 24694 2007-08-09 08:41:58Z yurik $';
}
}

View file

@ -87,7 +87,7 @@ class ApiQueryExternalLinks extends ApiQueryBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryExternalLinks.php 23819 2007-07-07 03:05:09Z yurik $';
}
}

View file

@ -159,6 +159,6 @@ class ApiQueryImageInfo extends ApiQueryBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryImageInfo.php 26855 2007-10-20 18:27:39Z catrope $';
}
}

View file

@ -112,7 +112,7 @@ class ApiQueryImages extends ApiQueryGeneratorBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryImages.php 24092 2007-07-14 19:04:31Z yurik $';
}
}

View file

@ -220,7 +220,7 @@ class ApiQueryInfo extends ApiQueryBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryInfo.php 27877 2007-11-27 10:22:14Z rotem $';
}
}

View file

@ -88,7 +88,7 @@ class ApiQueryLangLinks extends ApiQueryBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryLangLinks.php 23819 2007-07-07 03:05:09Z yurik $';
}
}

View file

@ -156,7 +156,7 @@ class ApiQueryLinks extends ApiQueryGeneratorBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryLinks.php 24092 2007-07-14 19:04:31Z yurik $';
}
}

View file

@ -266,7 +266,7 @@ class ApiQueryLogEvents extends ApiQueryBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryLogEvents.php 24256 2007-07-18 21:47:09Z robchurch $';
}
}

View file

@ -348,7 +348,7 @@ class ApiQueryRecentChanges extends ApiQueryBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryRecentChanges.php 26633 2007-10-12 14:03:43Z catrope $';
}
}

View file

@ -377,7 +377,7 @@ class ApiQueryRevisions extends ApiQueryBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryRevisions.php 28176 2007-12-05 06:32:17Z amidaniel $';
}
}

View file

@ -145,7 +145,7 @@ class ApiQuerySearch extends ApiQueryGeneratorBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQuerySearch.php 24453 2007-07-30 08:09:15Z yurik $';
}
}

View file

@ -233,6 +233,6 @@ class ApiQuerySiteinfo extends ApiQueryBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQuerySiteinfo.php 26444 2007-10-06 02:30:00Z amidaniel $';
}
}

View file

@ -270,7 +270,7 @@ class ApiQueryContributions extends ApiQueryBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryUserContributions.php 24754 2007-08-13 18:18:18Z robchurch $';
}
}

View file

@ -119,7 +119,7 @@ class ApiQueryUserInfo extends ApiQueryBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryUserInfo.php 27153 2007-11-03 16:08:43Z catrope $';
}
}

View file

@ -293,7 +293,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase {
}
public function getVersion() {
return __CLASS__ . ': $Id$';
return __CLASS__ . ': $Id: ApiQueryWatchlist.php 24092 2007-07-14 19:04:31Z yurik $';
}
}