r103273 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103272‎ | r103273 | r103274 >
Date:00:17, 16 November 2011
Author:johnduhart
Status:ok
Tags:
Comment:
Removed the 'eclipse helper' bit on top of every API module

It's a parctice that dates back to 2006 when the API was first written, and frankly isn't covered by the coding conventions. Same thing with the docblocks, they're all copypasted with some bits changed and don't even make sense if you look at them in the genereated code docs.
I don't feel that any of us depend on this anymore (get a better IDE), so in the inerest of consistancy it's time we said goodbye to it.
Modified paths:
  • /trunk/phase3/includes/api/ApiBlock.php (modified) (history)
  • /trunk/phase3/includes/api/ApiDelete.php (modified) (history)
  • /trunk/phase3/includes/api/ApiDisabled.php (modified) (history)
  • /trunk/phase3/includes/api/ApiEditPage.php (modified) (history)
  • /trunk/phase3/includes/api/ApiEmailUser.php (modified) (history)
  • /trunk/phase3/includes/api/ApiExpandTemplates.php (modified) (history)
  • /trunk/phase3/includes/api/ApiFeedWatchlist.php (modified) (history)
  • /trunk/phase3/includes/api/ApiFileRevert.php (modified) (history)
  • /trunk/phase3/includes/api/ApiFormatBase.php (modified) (history)
  • /trunk/phase3/includes/api/ApiFormatDbg.php (modified) (history)
  • /trunk/phase3/includes/api/ApiFormatDump.php (modified) (history)
  • /trunk/phase3/includes/api/ApiFormatJson.php (modified) (history)
  • /trunk/phase3/includes/api/ApiFormatPhp.php (modified) (history)
  • /trunk/phase3/includes/api/ApiFormatRaw.php (modified) (history)
  • /trunk/phase3/includes/api/ApiFormatTxt.php (modified) (history)
  • /trunk/phase3/includes/api/ApiFormatWddx.php (modified) (history)
  • /trunk/phase3/includes/api/ApiFormatXml.php (modified) (history)
  • /trunk/phase3/includes/api/ApiFormatYaml.php (modified) (history)
  • /trunk/phase3/includes/api/ApiHelp.php (modified) (history)
  • /trunk/phase3/includes/api/ApiImport.php (modified) (history)
  • /trunk/phase3/includes/api/ApiLogin.php (modified) (history)
  • /trunk/phase3/includes/api/ApiLogout.php (modified) (history)
  • /trunk/phase3/includes/api/ApiMain.php (modified) (history)
  • /trunk/phase3/includes/api/ApiMove.php (modified) (history)
  • /trunk/phase3/includes/api/ApiOpenSearch.php (modified) (history)
  • /trunk/phase3/includes/api/ApiPageSet.php (modified) (history)
  • /trunk/phase3/includes/api/ApiParamInfo.php (modified) (history)
  • /trunk/phase3/includes/api/ApiParse.php (modified) (history)
  • /trunk/phase3/includes/api/ApiPatrol.php (modified) (history)
  • /trunk/phase3/includes/api/ApiProtect.php (modified) (history)
  • /trunk/phase3/includes/api/ApiPurge.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQuery.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryAllCategories.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryAllLinks.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryAllUsers.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryAllimages.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryAllmessages.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryAllpages.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryBacklinks.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryBase.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryBlocks.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryCategories.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryCategoryInfo.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryCategoryMembers.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryDeletedrevs.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryDisabled.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryDuplicateFiles.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryExtLinksUsage.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryExternalLinks.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryFilearchive.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryIWBacklinks.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryIWLinks.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryImageInfo.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryImages.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryInfo.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryLangBacklinks.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryLangLinks.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryLinks.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryLogEvents.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryPageProps.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryProtectedTitles.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryQueryPage.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryRandom.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryRecentChanges.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryRevisions.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQuerySearch.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQuerySiteinfo.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryTags.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryUserContributions.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryUserInfo.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryUsers.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryWatchlist.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryWatchlistRaw.php (modified) (history)
  • /trunk/phase3/includes/api/ApiResult.php (modified) (history)
  • /trunk/phase3/includes/api/ApiRollback.php (modified) (history)
  • /trunk/phase3/includes/api/ApiRsd.php (modified) (history)
  • /trunk/phase3/includes/api/ApiUnblock.php (modified) (history)
  • /trunk/phase3/includes/api/ApiUndelete.php (modified) (history)
  • /trunk/phase3/includes/api/ApiUpload.php (modified) (history)
  • /trunk/phase3/includes/api/ApiUserrights.php (modified) (history)
  • /trunk/phase3/includes/api/ApiWatch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryRecentChanges.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * A query action to enumerate the recent changes that were done to the wiki.
3530 * Various filters are supported.
Index: trunk/phase3/includes/api/ApiQueryAllLinks.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * Query module to enumerate links from all pages together.
3530 *
Index: trunk/phase3/includes/api/ApiQueryAllCategories.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * Query module to enumerate all categories, even the ones that don't have
3530 * category pages.
Index: trunk/phase3/includes/api/ApiWatch.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiBase.php' );
31 -}
32 -
3328 /**
3429 * API module to allow users to watch a page
3530 *
Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * A query action to return meta information about the wiki site.
3530 *
Index: trunk/phase3/includes/api/ApiQueryRandom.php
@@ -25,11 +25,6 @@
2626 * @file
2727 */
2828
29 -if ( !defined( 'MEDIAWIKI' ) ) {
30 - // Eclipse helper - will be ignored in production
31 - require_once( 'ApiQueryBase.php' );
32 -}
33 -
3429 /**
3530 * Query module to get list of random pages
3631 *
Index: trunk/phase3/includes/api/ApiMove.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * API Module to move pages
3530 * @ingroup API
Index: trunk/phase3/includes/api/ApiQueryLinks.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiQueryBase.php" );
31 -}
32 -
3328 /**
3429 * A query module to list all wiki links on a given set of pages.
3530 *
Index: trunk/phase3/includes/api/ApiFileRevert.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * @ingroup API
3530 */
Index: trunk/phase3/includes/api/ApiLogout.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiBase.php' );
31 -}
32 -
3328 /**
3429 * API module to allow users to log out of the wiki. API equivalent of
3530 * Special:Userlogout.
Index: trunk/phase3/includes/api/ApiParse.php
@@ -22,11 +22,6 @@
2323 * @file
2424 */
2525
26 -if ( !defined( 'MEDIAWIKI' ) ) {
27 - // Eclipse helper - will be ignored in production
28 - require_once( "ApiBase.php" );
29 -}
30 -
3126 /**
3227 * @ingroup API
3328 */
Index: trunk/phase3/includes/api/ApiQueryExtLinksUsage.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * @ingroup API
3530 */
Index: trunk/phase3/includes/api/ApiQueryAllpages.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * Query module to enumerate all available pages.
3530 *
Index: trunk/phase3/includes/api/ApiFormatWddx.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiFormatBase.php' );
31 -}
32 -
3328 /**
3429 * API WDDX output formatter
3530 * @ingroup API
Index: trunk/phase3/includes/api/ApiProtect.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * @ingroup API
3530 */
Index: trunk/phase3/includes/api/ApiPurge.php
@@ -25,10 +25,6 @@
2626 * @file
2727 */
2828
29 -if ( !defined( 'MEDIAWIKI' ) ) {
30 - require_once( 'ApiBase.php' );
31 -}
32 -
3329 /**
3430 * API interface for page purging
3531 * @ingroup API
Index: trunk/phase3/includes/api/ApiQueryPageProps.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * A query module to show basic page information.
3530 *
Index: trunk/phase3/includes/api/ApiQueryBacklinks.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiQueryBase.php" );
31 -}
32 -
3328 /**
3429 * This is a three-in-one module to query:
3530 * * backlinks - links pointing to the given page,
Index: trunk/phase3/includes/api/ApiRollback.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * @ingroup API
3530 */
Index: trunk/phase3/includes/api/ApiQueryDeletedrevs.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * Query module to enumerate all deleted revisions.
3530 *
Index: trunk/phase3/includes/api/ApiExpandTemplates.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * API module that functions as a shortcut to the wikitext preprocessor. Expands
3530 * any templates in a provided string, and returns the result of this expansion
Index: trunk/phase3/includes/api/ApiUserrights.php
@@ -25,11 +25,6 @@
2626 * @file
2727 */
2828
29 -if ( !defined( 'MEDIAWIKI' ) ) {
30 - // Eclipse helper - will be ignored in production
31 - require_once( "ApiBase.php" );
32 -}
33 -
3429 /**
3530 * @ingroup API
3631 */
Index: trunk/phase3/includes/api/ApiQueryBase.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiBase.php' );
31 -}
32 -
3328 /**
3429 * This is a base class for all Query modules.
3530 * It provides some common functionality such as constructing various SQL
Index: trunk/phase3/includes/api/ApiFormatPhp.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiFormatBase.php' );
31 -}
32 -
3328 /**
3429 * API Serialized PHP output formatter
3530 * @ingroup API
Index: trunk/phase3/includes/api/ApiDelete.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * API module that facilitates deleting pages. The API equivalent of action=delete.
3530 * Requires API write mode to be enabled.
Index: trunk/phase3/includes/api/ApiQueryBlocks.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * Query module to enumerate all user blocks
3530 *
Index: trunk/phase3/includes/api/ApiQueryFilearchive.php
@@ -26,11 +26,6 @@
2727 * @file
2828 */
2929
30 -if ( !defined( 'MEDIAWIKI' ) ) {
31 - // Eclipse helper - will be ignored in production
32 - require_once( 'ApiQueryBase.php' );
33 -}
34 -
3530 /**
3631 * Query module to enumerate all deleted files.
3732 *
Index: trunk/phase3/includes/api/ApiDisabled.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * API module that dies with an error immediately.
3530 *
Index: trunk/phase3/includes/api/ApiImport.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiBase.php' );
31 -}
32 -
3328 /**
3429 * API module that imports an XML file like Special:Import does
3530 *
Index: trunk/phase3/includes/api/ApiFormatYaml.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiFormatBase.php' );
31 -}
32 -
3328 /**
3429 * API YAML output formatter
3530 * @ingroup API
Index: trunk/phase3/includes/api/ApiResult.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiBase.php' );
31 -}
32 -
3328 /**
3429 * This class represents the result of the API operations.
3530 * It simply wraps a nested array() structure, adding some functions to simplify array's modifications.
Index: trunk/phase3/includes/api/ApiQueryCategoryMembers.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiQueryBase.php" );
31 -}
32 -
3328 /**
3429 * A query module to enumerate pages that belong to a category.
3530 *
Index: trunk/phase3/includes/api/ApiQueryCategoryInfo.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiQueryBase.php" );
31 -}
32 -
3328 /**
3429 * This query adds the <categories> subelement to all pages with the list of categories the page is in
3530 *
Index: trunk/phase3/includes/api/ApiEditPage.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * A module that allows for editing and creating pages.
3530 *
Index: trunk/phase3/includes/api/ApiFormatBase.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiBase.php' );
31 -}
32 -
3328 /**
3429 * This is the abstract base class for API formatters.
3530 *
Index: trunk/phase3/includes/api/ApiQueryAllimages.php
@@ -26,11 +26,6 @@
2727 * @file
2828 */
2929
30 -if ( !defined( 'MEDIAWIKI' ) ) {
31 - // Eclipse helper - will be ignored in production
32 - require_once( 'ApiQueryBase.php' );
33 -}
34 -
3530 /**
3631 * Query module to enumerate all available pages.
3732 *
Index: trunk/phase3/includes/api/ApiQueryAllmessages.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * A query action to return messages from site message cache
3530 *
Index: trunk/phase3/includes/api/ApiFormatTxt.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiFormatBase.php' );
31 -}
32 -
3328 /**
3429 * API Text output formatter
3530 * @ingroup API
Index: trunk/phase3/includes/api/ApiQuerySearch.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * Query module to perform full text search within wiki titles and content
3530 *
Index: trunk/phase3/includes/api/ApiQueryLogEvents.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * Query action to List the log events, with optional filtering by various parameters.
3530 *
Index: trunk/phase3/includes/api/ApiUnblock.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * API module that facilitates the unblocking of users. Requires API write mode
3530 * to be enabled.
Index: trunk/phase3/includes/api/ApiQueryWatchlistRaw.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * This query action allows clients to retrieve a list of pages
3530 * on the logged-in user's watchlist.
Index: trunk/phase3/includes/api/ApiFormatRaw.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiFormatBase.php' );
31 -}
32 -
3328 /**
3429 * Formatter that spits out anything you like with any desired MIME type
3530 * @ingroup API
Index: trunk/phase3/includes/api/ApiQueryProtectedTitles.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * Query module to enumerate all create-protected pages.
3530 *
Index: trunk/phase3/includes/api/ApiFormatDbg.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiFormatBase.php' );
31 -}
32 -
3328 /**
3429 * API PHP's var_export() output formatter
3530 * @ingroup API
Index: trunk/phase3/includes/api/ApiQuery.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiBase.php' );
31 -}
32 -
3328 /**
3429 * This is the main query class. It behaves similar to ApiMain: based on the
3530 * parameters given, it will create a list of titles to work on (an ApiPageSet
Index: trunk/phase3/includes/api/ApiQueryIWLinks.php
@@ -25,11 +25,6 @@
2626 * @file
2727 */
2828
29 -if ( !defined( 'MEDIAWIKI' ) ) {
30 - // Eclipse helper - will be ignored in production
31 - require_once( "ApiQueryBase.php" );
32 -}
33 -
3429 /**
3530 * A query module to list all interwiki links on a page
3631 *
Index: trunk/phase3/includes/api/ApiLogin.php
@@ -25,11 +25,6 @@
2626 * @file
2727 */
2828
29 -if ( !defined( 'MEDIAWIKI' ) ) {
30 - // Eclipse helper - will be ignored in production
31 - require_once( 'ApiBase.php' );
32 -}
33 -
3429 /**
3530 * Unit to authenticate log-in attempts to the current wiki.
3631 *
Index: trunk/phase3/includes/api/ApiQueryLangLinks.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiQueryBase.php" );
31 -}
32 -
3328 /**
3429 * A query module to list all langlinks (links to correspanding foreign language pages).
3530 *
Index: trunk/phase3/includes/api/ApiFormatXml.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiFormatBase.php' );
31 -}
32 -
3328 /**
3429 * API XML output formatter
3530 * @ingroup API
Index: trunk/phase3/includes/api/ApiFormatDump.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiFormatBase.php' );
31 -}
32 -
3328 /**
3429 * API PHP's var_dump() output formatter
3530 * @ingroup API
Index: trunk/phase3/includes/api/ApiQueryUserInfo.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * Query module to get information about the currently logged-in user
3530 *
Index: trunk/phase3/includes/api/ApiFormatJson.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiFormatBase.php' );
31 -}
32 -
3328 /**
3429 * API JSON output formatter
3530 * @ingroup API
Index: trunk/phase3/includes/api/ApiMain.php
@@ -25,11 +25,6 @@
2626 * @defgroup API API
2727 */
2828
29 -if ( !defined( 'MEDIAWIKI' ) ) {
30 - // Eclipse helper - will be ignored in production
31 - require_once( 'ApiBase.php' );
32 -}
33 -
3429 /**
3530 * This is the main API class, used for both external and internal processing.
3631 * When executed, it will create the requested formatter object,
Index: trunk/phase3/includes/api/ApiQueryImageInfo.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * A query action to get image information and upload history.
3530 *
Index: trunk/phase3/includes/api/ApiEmailUser.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * API Module to facilitate sending of emails to users
3530 * @ingroup API
Index: trunk/phase3/includes/api/ApiOpenSearch.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * @ingroup API
3530 */
Index: trunk/phase3/includes/api/ApiQueryIWBacklinks.php
@@ -25,11 +25,6 @@
2626 * @file
2727 */
2828
29 -if ( !defined( 'MEDIAWIKI' ) ) {
30 - // Eclipse helper - will be ignored in production
31 - require_once( "ApiQueryBase.php" );
32 -}
33 -
3429 /**
3530 * This gives links pointing to the given interwiki
3631 * @ingroup API
Index: trunk/phase3/includes/api/ApiQueryQueryPage.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * Query module to get the results of a QueryPage-based special page
3530 *
Index: trunk/phase3/includes/api/ApiPageSet.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * This class contains a list of pages that the client has requested.
3530 * Initially, when the client passes in titles=, pageids=, or revisions=
Index: trunk/phase3/includes/api/ApiHelp.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiBase.php' );
31 -}
32 -
3328 /**
3429 * This is a simple class to handle action=help
3530 *
Index: trunk/phase3/includes/api/ApiQueryWatchlist.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * This query action allows clients to retrieve a list of recently modified pages
3530 * that are part of the logged-in user's watchlist.
Index: trunk/phase3/includes/api/ApiRsd.php
@@ -25,10 +25,6 @@
2626 * @file
2727 */
2828
29 -if ( !defined( 'MEDIAWIKI' ) ) {
30 - require_once( 'ApiBase.php' );
31 -}
32 -
3329 /**
3430 * API module for sending out RSD information
3531 * @ingroup API
Index: trunk/phase3/includes/api/ApiQueryLangBacklinks.php
@@ -25,11 +25,6 @@
2626 * @file
2727 */
2828
29 -if ( !defined( 'MEDIAWIKI' ) ) {
30 - // Eclipse helper - will be ignored in production
31 - require_once( "ApiQueryBase.php" );
32 -}
33 -
3429 /**
3530 * This gives links pointing to the given interwiki
3631 * @ingroup API
Index: trunk/phase3/includes/api/ApiBlock.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * API module that facilitates the blocking of users. Requires API write mode
3530 * to be enabled.
Index: trunk/phase3/includes/api/ApiQueryDisabled.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * API module that does nothing
3530 *
Index: trunk/phase3/includes/api/ApiPatrol.php
@@ -24,10 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - require_once ( 'ApiBase.php' );
30 -}
31 -
3228 /**
3329 * Allows user to patrol pages
3430 * @ingroup API
Index: trunk/phase3/includes/api/ApiUndelete.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * @ingroup API
3530 */
Index: trunk/phase3/includes/api/ApiQueryRevisions.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * A query action to enumerate revisions of a given page, or show top revisions of multiple pages.
3530 * Various pieces of information may be shown - flags, comments, and the actual wiki markup of the rev.
Index: trunk/phase3/includes/api/ApiQueryExternalLinks.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiQueryBase.php" );
31 -}
32 -
3328 /**
3429 * A query module to list all external URLs found on a given set of pages.
3530 *
Index: trunk/phase3/includes/api/ApiQueryCategories.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiQueryBase.php" );
31 -}
32 -
3328 /**
3429 * A query module to enumerate categories the set of pages belong to.
3530 *
Index: trunk/phase3/includes/api/ApiParamInfo.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * @ingroup API
3530 */
Index: trunk/phase3/includes/api/ApiQueryAllUsers.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * Query module to enumerate all registered users.
3530 *
Index: trunk/phase3/includes/api/ApiQueryInfo.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * A query module to show basic page information.
3530 *
Index: trunk/phase3/includes/api/ApiQueryDuplicateFiles.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiQueryBase.php" );
31 -}
32 -
3328 /**
3429 * A query module to list duplicates of the given file(s)
3530 *
Index: trunk/phase3/includes/api/ApiQueryTags.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * Query module to enumerate change tags.
3530 *
Index: trunk/phase3/includes/api/ApiUpload.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * @ingroup API
3530 */
Index: trunk/phase3/includes/api/ApiFeedWatchlist.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiBase.php" );
31 -}
32 -
3328 /**
3429 * This action allows users to get their watchlist items in RSS/Atom formats.
3530 * When executed, it performs a nested call to the API to get the needed data,
Index: trunk/phase3/includes/api/ApiQueryUserContributions.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * This query action adds a list of a specified user's contributions to the output.
3530 *
Index: trunk/phase3/includes/api/ApiQueryUsers.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( 'ApiQueryBase.php' );
31 -}
32 -
3328 /**
3429 * Query module to get information about a list of users
3530 *
Index: trunk/phase3/includes/api/ApiQueryImages.php
@@ -24,11 +24,6 @@
2525 * @file
2626 */
2727
28 -if ( !defined( 'MEDIAWIKI' ) ) {
29 - // Eclipse helper - will be ignored in production
30 - require_once( "ApiQueryBase.php" );
31 -}
32 -
3328 /**
3429 * This query adds an <images> subelement to all pages with the list of images embedded into those pages.
3530 *

Status & tagging log