Go to the documentation of this file.
84 foreach ( $values
as $val ) {
85 if ( $val instanceof
Title ) {
88 } elseif (
$name !==
null ) {
93 if ( $flag !==
null ) {
110 $this->mDbSource = $dbSource;
112 $this->mDefaultNamespace = $defaultNamespace;
116 $this->mResolveRedirects = $this->mParams[
'redirects'];
117 $this->mConvertTitles = $this->mParams[
'converttitles'];
144 $generatorName = $this->mAllowGenerator ? $this->mParams[
'generator'] :
null;
145 if ( isset( $generatorName ) ) {
147 $isQuery = $dbSource instanceof
ApiQuery;
150 $dbSource = $this->
getMain()->getModuleManager()->getModule(
'query' );
154 $generator = $dbSource->
getModuleManager()->getModule( $generatorName,
null,
true );
155 if ( $generator ===
null ) {
156 $this->
dieUsage(
'Unknown generator=' . $generatorName,
'badgenerator' );
159 $this->
dieUsage(
"Module $generatorName cannot be used as a generator",
'badgenerator' );
164 $generator->setGeneratorMode( $tmpPageSet );
165 $this->mCacheMode = $generator->getCacheMode( $generator->extractRequestParams() );
168 $generator->requestExtraData( $tmpPageSet );
170 $tmpPageSet->executeInternal( $isDryRun );
174 $generator->profileIn();
177 $generator->executeGenerator( $this );
178 wfRunHooks(
'APIQueryGeneratorAfterExecute',
array( &$generator, &$this ) );
182 foreach ( $generator->extractRequestParams()
as $paramName => $param ) {
183 $main->getVal( $generator->encodeParamName( $paramName ) );
186 $generator->profileOut();
200 if ( isset( $this->mParams[
'titles'] ) ) {
201 $dataSource =
'titles';
203 if ( isset( $this->mParams[
'pageids'] ) ) {
204 if ( isset( $dataSource ) ) {
205 $this->
dieUsage(
"Cannot use 'pageids' at the same time as '$dataSource'",
'multisource' );
207 $dataSource =
'pageids';
209 if ( isset( $this->mParams[
'revids'] ) ) {
210 if ( isset( $dataSource ) ) {
211 $this->
dieUsage(
"Cannot use 'revids' at the same time as '$dataSource'",
'multisource' );
213 $dataSource =
'revids';
218 switch ( $dataSource ) {
226 if ( $this->mResolveRedirects ) {
227 $this->
setWarning(
'Redirect resolution cannot be used ' .
228 'together with the revids= parameter. Any redirects ' .
229 'the revids= point to have not been resolved.' );
231 $this->mResolveRedirects =
false;
260 if ( $this->mAllowGenerator && isset( $this->mParams[
'generator'] ) ) {
263 if ( isset( $this->mParams[
'titles'] ) ) {
266 if ( isset( $this->mParams[
'pageids'] ) ) {
269 if ( isset( $this->mParams[
'revids'] ) ) {
282 $this->mRequestedPageFields[$fieldName] =
null;
292 return $this->mRequestedPageFields[$fieldName];
305 'page_namespace' =>
null,
306 'page_title' =>
null,
310 if ( $this->mResolveRedirects ) {
311 $pageFlds[
'page_is_redirect'] =
null;
315 $this->mRequestedPageFields = array_diff_key( $this->mRequestedPageFields, $pageFlds );
317 $pageFlds = array_merge( $pageFlds, $this->mRequestedPageFields );
319 return array_keys( $pageFlds );
345 return count( $this->mTitles );
361 return count( $this->mGoodTitles );
410 'from' => strval( $titleStrFrom ),
411 'to' => $titleTo->getPrefixedText(),
413 if ( $titleTo->hasFragment() ) {
414 $r[
'tofragment'] = $titleTo->getFragment();
418 if ( !empty( $values ) &&
$result ) {
419 $result->setIndexedTagName( $values,
'r' );
445 'from' => $rawTitleStr,
449 if ( !empty( $values ) &&
$result ) {
450 $result->setIndexedTagName( $values,
'n' );
476 'from' => $rawTitleStr,
480 if ( !empty( $values ) &&
$result ) {
481 $result->setIndexedTagName( $values,
'c' );
508 'title' => $rawTitleStr,
509 'iw' => $interwikiStr,
517 if ( !empty( $values ) &&
$result ) {
518 $result->setIndexedTagName( $values,
'i' );
539 'special',
'missingIds',
'missingRevIds',
'missingTitles',
'interwikiTitles' )
542 if ( in_array(
"invalidTitles", $invalidChecks ) ) {
545 if ( in_array(
"special", $invalidChecks ) ) {
548 if ( in_array(
"missingIds", $invalidChecks ) ) {
551 if ( in_array(
"missingRevIds", $invalidChecks ) ) {
554 if ( in_array(
"missingTitles", $invalidChecks ) ) {
557 if ( in_array(
"interwikiTitles", $invalidChecks ) ) {
589 $values[$revid] =
array(
593 if ( !empty( $values ) &&
$result ) {
594 $result->setIndexedTagName( $values,
'rev' );
665 $pageId = intval( $row->page_id );
666 $this->mAllPages[$row->page_namespace][$row->page_title] = $pageId;
667 $this->mTitles[] =
$title;
669 if ( $this->mResolveRedirects && $row->page_is_redirect ==
'1' ) {
670 $this->mPendingRedirectIDs[$pageId] =
$title;
672 $this->mGoodTitles[$pageId] =
$title;
675 foreach ( $this->mRequestedPageFields
as $fieldName => &$fieldValues ) {
676 $fieldValues[$pageId] = $row->$fieldName;
707 if ( $linkBatch->isEmpty() ) {
711 $db = $this->
getDB();
712 $set = $linkBatch->constructSet(
'page', $db );
736 $pageids = array_map(
'intval', $pageids );
737 $remaining = array_flip( $pageids );
742 if ( !empty( $pageids ) ) {
744 'page_id' => $pageids
746 $db = $this->
getDB();
772 if ( !is_null( $remaining ) && is_null( $processTitles ) ) {
773 ApiBase::dieDebug( __METHOD__,
'Missing $processTitles parameter when $remaining is provided' );
776 $usernames =
array();
778 foreach (
$res as $row ) {
779 $pageId = intval( $row->page_id );
782 if ( isset( $remaining ) ) {
783 if ( $processTitles ) {
784 unset( $remaining[$row->page_namespace][$row->page_title] );
786 unset( $remaining[$pageId] );
795 $usernames[] = $row->page_title;
800 if ( isset( $remaining ) ) {
802 if ( $processTitles ) {
804 foreach ( $remaining
as $ns => $dbkeys ) {
805 foreach ( array_keys( $dbkeys )
as $dbkey ) {
809 $this->mFakePageId--;
810 $this->mTitles[] =
$title;
814 $usernames[] = $dbkey;
820 if ( !$this->mMissingPageIDs ) {
821 $this->mMissingPageIDs = array_keys( $remaining );
823 $this->mMissingPageIDs = array_merge( $this->mMissingPageIDs, array_keys( $remaining ) );
830 $genderCache->doQuery( $usernames, __METHOD__ );
843 $revids = array_map(
'intval', $revids );
844 $db = $this->
getDB();
846 $remaining = array_flip( $revids );
850 if ( !empty( $revids ) ) {
852 $fields =
array(
'rev_id',
'rev_page' );
853 $where =
array(
'rev_id' => $revids,
'rev_page = page_id' );
857 $res = $db->select(
$tables, $fields, $where, __METHOD__ );
858 foreach (
$res as $row ) {
859 $revid = intval( $row->rev_id );
860 $pageid = intval( $row->rev_page );
861 $this->mGoodRevIDs[$revid] = $pageid;
862 $pageids[$pageid] =
'';
863 unset( $remaining[$revid] );
868 $this->mMissingRevIDs = array_keys( $remaining );
880 if ( $this->mResolveRedirects ) {
881 $db = $this->
getDB();
886 while ( $this->mPendingRedirectIDs ) {
891 if ( $linkBatch->isEmpty() ) {
895 $set = $linkBatch->constructSet(
'page', $db );
896 if ( $set ===
false ) {
902 $res = $db->select(
'page', $pageFlds, $set, __METHOD__ );
920 $db = $this->
getDB();
931 ),
array(
'rd_from' => array_keys( $this->mPendingRedirectIDs ) ),
935 foreach (
$res as $row ) {
936 $rdfrom = intval( $row->rd_from );
937 $from = $this->mPendingRedirectIDs[$rdfrom]->getPrefixedText();
944 unset( $this->mPendingRedirectIDs[$rdfrom] );
945 if ( !$to->isExternal() && !isset( $this->mAllPages[$row->rd_namespace][$row->rd_title] ) ) {
946 $lb->add( $row->rd_namespace, $row->rd_title );
948 $this->mRedirectTitles[
$from] = $to;
951 if ( $this->mPendingRedirectIDs ) {
954 foreach ( $this->mPendingRedirectIDs
as $id =>
$title ) {
956 $rt = $page->insertRedirect();
962 $this->mRedirectTitles[
$title->getPrefixedText()] = $rt;
963 unset( $this->mPendingRedirectIDs[$id] );
997 $usernames =
array();
1001 if ( is_string(
$title ) ) {
1010 $this->mFakePageId--;
1013 $unconvertedTitle = $titleObj->getPrefixedText();
1014 $titleWasConverted =
false;
1015 if ( $titleObj->isExternal() ) {
1017 $this->mInterwikiTitles[$unconvertedTitle] = $titleObj->getInterwiki();
1021 if ( $this->mConvertTitles &&
1023 !$titleObj->exists()
1027 $titleText = is_string(
$title ) ?
$title : $titleObj->getPrefixedText();
1028 $wgContLang->findVariantLink( $titleText, $titleObj );
1029 $titleWasConverted = $unconvertedTitle !== $titleObj->getPrefixedText();
1032 if ( $titleObj->getNamespace() < 0 ) {
1034 $titleObj = $titleObj->fixSpecialName();
1036 $this->mFakePageId--;
1039 $linkBatch->addObj( $titleObj );
1048 if ( $titleWasConverted ) {
1049 $this->mConvertedTitles[$unconvertedTitle] = $titleObj->getPrefixedText();
1051 if ( is_string(
$title ) &&
$title !== $unconvertedTitle ) {
1052 $this->mNormalizedTitles[
$title] = $unconvertedTitle;
1054 } elseif ( is_string(
$title ) &&
$title !== $titleObj->getPrefixedText() ) {
1055 $this->mNormalizedTitles[
$title] = $titleObj->getPrefixedText();
1060 $usernames[] = $titleObj->getText();
1065 $genderCache->doQuery( $usernames, __METHOD__ );
1074 protected function getDB() {
1075 return $this->mDbSource->getDB();
1088 foreach ( $array
as $i => $int ) {
1090 unset( $array[$i] );
1110 'redirects' =>
false,
1111 'converttitles' =>
false,
1113 if ( $this->mAllowGenerator ) {
1119 $result[
'generator'] =
null;
1133 if ( self::$generators ===
null ) {
1138 $query = $this->
getMain()->getModuleManager()->getModule(
'query' );
1141 $mgr =
$query->getModuleManager();
1142 foreach ( $mgr->getNamesWithClasses()
as $name => $class ) {
1143 if ( is_subclass_of( $class,
'ApiQueryGeneratorBase' ) ) {
1148 self::$generators = $gens;
1156 'titles' =>
'A list of titles to work on',
1157 'pageids' =>
'A list of page IDs to work on',
1158 'revids' =>
'A list of revision IDs to work on',
1159 'generator' =>
array(
1160 'Get the list of pages to work on by executing the specified query module.',
1161 'NOTE: generator parameter names must be prefixed with a \'g\', see examples'
1163 'redirects' =>
'Automatically resolve redirects',
1164 'converttitles' =>
array(
1165 'Convert titles to other variants if necessary. Only works if ' .
1166 'the wiki\'s content language supports variant conversion.',
1167 'Languages that support variant conversion include ' .
1168 implode(
', ', LanguageConverter::$languagesWithVariants )
1174 return array_merge( parent::getPossibleErrors(),
array(
1176 'code' =>
'multisource',
1177 'info' =>
"Cannot use 'pageids' at the same time as 'dataSource'"
1180 'code' =>
'multisource',
1181 'info' =>
"Cannot use 'revids' at the same time as 'dataSource'"
1184 'code' =>
'badgenerator',
1185 'info' =>
'Module $generatorName cannot be used as a generator'
getTitleCount()
Returns the number of unique pages (not revisions) in the set.
initFromTitles( $titles)
This method populates internal variables with page information based on the given array of title stri...
static & makeTitle( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
The index of the header message $result[1]=The index of the body text message $result[2 through n]=Parameters passed to body text message. Please note the header message cannot receive/use parameters. 'ImportHandleLogItemXMLTag':When parsing a XML tag in a log item. $reader:XMLReader object $logInfo:Array of information Return false to stop further processing of the tag 'ImportHandlePageXMLTag':When parsing a XML tag in a page. $reader:XMLReader object $pageInfo:Array of information Return false to stop further processing of the tag 'ImportHandleRevisionXMLTag':When parsing a XML tag in a page revision. $reader:XMLReader object $pageInfo:Array of page information $revisionInfo:Array of revision information Return false to stop further processing of the tag 'ImportHandleToplevelXMLTag':When parsing a top level XML tag. $reader:XMLReader object Return false to stop further processing of the tag 'ImportHandleUploadXMLTag':When parsing a XML tag in a file upload. $reader:XMLReader object $revisionInfo:Array of information Return false to stop further processing of the tag 'InfoAction':When building information to display on the action=info page. $context:IContextSource object & $pageInfo:Array of information 'InitializeArticleMaybeRedirect':MediaWiki check to see if title is a redirect. $title:Title object for the current page $request:WebRequest $ignoreRedirect:boolean to skip redirect check $target:Title/string of redirect target $article:Article object 'InterwikiLoadPrefix':When resolving if a given prefix is an interwiki or not. Return true without providing an interwiki to continue interwiki search. $prefix:interwiki prefix we are looking for. & $iwData:output array describing the interwiki with keys iw_url, iw_local, iw_trans and optionally iw_api and iw_wikiid. 'InternalParseBeforeSanitize':during Parser 's internalParse method just before the parser removes unwanted/dangerous HTML tags and after nowiki/noinclude/includeonly/onlyinclude and other processings. Ideal for syntax-extensions after template/parser function execution which respect nowiki and HTML-comments. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InternalParseBeforeLinks':during Parser 's internalParse method before links but after nowiki/noinclude/includeonly/onlyinclude and other processings. & $parser:Parser object & $text:string containing partially parsed text & $stripState:Parser 's internal StripState object 'InvalidateEmailComplete':Called after a user 's email has been invalidated successfully. $user:user(object) whose email is being invalidated 'IRCLineURL':When constructing the URL to use in an IRC notification. Callee may modify $url and $query, URL will be constructed as $url . $query & $url:URL to index.php & $query:Query string $rc:RecentChange object that triggered url generation 'IsFileCacheable':Override the result of Article::isFileCacheable()(if true) $article:article(object) being checked 'IsTrustedProxy':Override the result of wfIsTrustedProxy() $ip:IP being check $result:Change this value to override the result of wfIsTrustedProxy() 'IsUploadAllowedFromUrl':Override the result of UploadFromUrl::isAllowedUrl() $url:URL used to upload from & $allowed:Boolean indicating if uploading is allowed for given URL 'isValidEmailAddr':Override the result of User::isValidEmailAddr(), for instance to return false if the domain name doesn 't match your organization. $addr:The e-mail address entered by the user & $result:Set this and return false to override the internal checks 'isValidPassword':Override the result of User::isValidPassword() $password:The password entered by the user & $result:Set this and return false to override the internal checks $user:User the password is being validated for 'Language::getMessagesFileName':$code:The language code or the language we 're looking for a messages file for & $file:The messages file path, you can override this to change the location. 'LanguageGetNamespaces':Provide custom ordering for namespaces or remove namespaces. Do not use this hook to add namespaces. Use CanonicalNamespaces for that. & $namespaces:Array of namespaces indexed by their numbers 'LanguageGetMagic':DEPRECATED, use $magicWords in a file listed in $wgExtensionMessagesFiles instead. Use this to define synonyms of magic words depending of the language $magicExtensions:associative array of magic words synonyms $lang:language code(string) 'LanguageGetSpecialPageAliases':DEPRECATED, use $specialPageAliases in a file listed in $wgExtensionMessagesFiles instead. Use to define aliases of special pages names depending of the language $specialPageAliases:associative array of magic words synonyms $lang:language code(string) 'LanguageGetTranslatedLanguageNames':Provide translated language names. & $names:array of language code=> language name $code language of the preferred translations 'LanguageLinks':Manipulate a page 's language links. This is called in various places to allow extensions to define the effective language links for a page. $title:The page 's Title. & $links:Associative array mapping language codes to prefixed links of the form "language:title". & $linkFlags:Associative array mapping prefixed links to arrays of flags. Currently unused, but planned to provide support for marking individual language links in the UI, e.g. for featured articles. 'LinkBegin':Used when generating internal and interwiki links in Linker::link(), before processing starts. Return false to skip default processing and return $ret. See documentation for Linker::link() for details on the expected meanings of parameters. $skin:the Skin object $target:the Title that the link is pointing to & $html:the contents that the< a > tag should have(raw HTML) $result
static newFromText( $text, $defaultNamespace=NS_MAIN)
Create a new Title from text, such as what one would find in a link.
This is the main query class.
processDbRow( $row)
Extract all requested fields from the row received from the database.
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
static hasGenderDistinction( $index)
Does the namespace (potentially) have different aliases for different genders.
Class representing a list of titles The execute() method checks them all for existence and adds them ...
namespace and then decline to actually register it RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist e g Watchlist & $tables
getGoodTitleCount()
Returns the number of found unique pages (not revisions) in the set.
processTitlesArray( $titles)
Given an array of title strings, convert them into Title objects.
getTitles()
All Title objects provided.
getConvertedTitles()
Get a list of title conversions - maps a title to its converted version.
__construct(ApiBase $dbSource, $flags=0, $defaultNamespace=NS_MAIN)
Constructor.
getInvalidTitles()
Titles that were deemed invalid by Title::newFromText() The array's index will be unique and negative...
profileDBIn()
Start module profiling.
initFromQueryResult( $res, &$remaining=null, $processTitles=null)
Iterate through the result of the query on 'page' table, and for each row create and store title obje...
requestField( $fieldName)
Request an additional field from the page table.
execute()
Populate the PageSet from the request parameters.
profileDBOut()
End database profiling.
resolvePendingRedirects()
Resolve any redirects in the result if redirect resolution was requested.
populateFromRevisionIDs( $revIDs)
Populate this PageSet from a list of revision IDs.
this class mediates it Skin Encapsulates a look and feel for the wiki All of the functions that render HTML and make choices about how to render it are here and are called from various other places when and is meant to be subclassed with other skins that may override some of its functions The User object contains a reference to a and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser and also has some character encoding functions and other locale stuff The current user interface language is instantiated as and the content language as $wgContLang
it s the revision text itself In either if gzip is the revision text is gzipped $flags
populateFromTitles( $titles)
Populate this PageSet from a list of Titles.
This class contains a list of pages that the client has requested.
This abstract class implements many basic API functions, and is the base of all API classes.
executeDryRun()
In case execute() is not called, call this method to mark all relevant parameters as used This preven...
getRedirectTitlesAsResult( $result=null)
Get a list of redirect resolutions - maps a title to its redirect target.
getPageTableFields()
Get the fields that have to be queried from the page table: the ones requested through requestField()...
finishPageSetGeneration()
Do not use, does nothing, will be removed.
getConvertedTitlesAsResult( $result=null)
Get a list of title conversions - maps a title to its converted version as a result array.
getMissingTitles()
Title objects that were NOT found in the database.
profileOut()
End module profiling.
if( $wgAPIRequestLog) $lb
static factory(Title $title)
Create a WikiPage object of the appropriate class for the given title.
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
linkcache txt The LinkCache class maintains a list of article titles and the information about whether or not the article exists in the database This is used to mark up links when displaying a page If the same link appears more than once on any page then it only has to be looked up once In most cases link lookups are done in batches with the LinkBatch class or the equivalent in so the link cache is mostly useful for short snippets of parsed and for links in the navigation areas of the skin The link cache was formerly used to track links used in a document for the purposes of updating the link tables This application is now deprecated To create a you can use the following $titles
populateFromQueryResult( $db, $queryResult)
Populate this PageSet from a rowset returned from the database.
static newFromRow( $row)
Make a Title object from a DB row.
getGenerators()
Get an array of all available generators.
getDataSource()
Return the parameter name that is the source of data for this PageSet.
getInvalidTitlesAndRevisions( $invalidChecks=array( 'invalidTitles', 'special', 'missingIds', 'missingRevIds', 'missingTitles', 'interwikiTitles'))
Get an array of invalid/special/missing titles.
getParamDescription()
Returns an array of parameter descriptions.
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
getRevisionIDs()
Get the list of revision IDs (requested with the revids= parameter)
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
getRedirectTitles()
Get a list of redirect resolutions - maps a title to its redirect target, as an array of output-ready...
when a variable name is used in a it is silently declared as a new masking the global
getGoodTitles()
Title objects that were found in the database.
isResolvingRedirects()
Check whether this PageSet is resolving redirects.
extractRequestParams( $parseLimit=true)
Using getAllowedParams(), this function makes an array of the values provided by the user,...
presenting them properly to the user as errors is done by the caller $title
Allows to change the fields on the form that will be generated $name
getCacheMode( $params=null)
Get the cache mode for the data generated by this module.
initFromRevIDs( $revids)
Does the same as initFromTitles(), but is based on revision IDs instead.
dieUsage( $description, $errorCode, $httpRespCode=0, $extradata=null)
Throw a UsageException, which will (if uncaught) call the main module's error handler and die with an...
const GET_VALUES_FOR_HELP
getAllowedParams() flag: When set, the result could take longer to generate, but should be more thoro...
getInterwikiTitles()
Get a list of interwiki titles - maps a title to its interwiki prefix.
getPossibleErrors()
Returns a list of all possible errors returned by the module.
getAllTitlesByNamespace()
Returns an array [ns][dbkey] => page_id for all requested titles.
getNormalizedTitlesAsResult( $result=null)
Get a list of title normalizations - maps a title to its normalized version in the form of result arr...
populateFromPageIDs( $pageIDs)
Populate this PageSet from a list of page IDs.
static addValues(array &$result, $values, $flag=null, $name=null)
Add all items from $values into the result.
getDB()
Get the database connection (read-only)
getAllowedParams( $flags=0)
getInterwikiTitlesAsResult( $result=null, $iwUrl=false)
Get a list of interwiki titles - maps a title to its interwiki prefix as result.
profileIn()
Start module profiling.
getMissingPageIDs()
Page IDs that were not found in the database.
setWarning( $warning)
Set warning section for this module.
getRedirectTargets()
Get the targets of the pending redirects from the database.
Represents a title within MediaWiki.
getMissingRevisionIDsAsResult( $result=null)
Revision IDs that were not found in the database as result array.
getModuleManager()
Get the module manager, or null if this module has no sub-modules.
initFromPageIds( $pageids)
Does the same as initFromTitles(), but is based on page IDs instead.
executeInternal( $isDryRun)
Populate the PageSet from the request parameters.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
getModuleName()
Get the name of the module being executed by this instance.
getMissingRevisionIDs()
Revision IDs that were not found in the database.
getAllowedParams()
Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (ar...
getMain()
Get the main module.
getCustomField( $fieldName)
Get the value of a custom field previously requested through requestField()
getRevisionCount()
Returns the number of revisions (requested with revids= parameter).
return true to allow those checks to and false if checking is done use this to change the tables headers temp or archived zone change it to an object instance and return false override the list derivative used the name of the old file when set the default code will be skipped add a value to it if you want to add a cookie that have to vary cache options can modify $query
const DISABLE_GENERATORS
Constructor flag: The new instance of ApiPageSet will ignore the 'generator=' parameter.
getSpecialTitles()
Get the list of titles with negative namespace.
getNormalizedTitles()
Get a list of title normalizations - maps a title to its normalized version.
static dieDebug( $method, $message)
Internal code errors should be reported with this method.
static addTitleInfo(&$arr, $title, $prefix='')
Add information (title and namespace) about a Title object to a result array.
static getPositiveIntegers( $array)
Returns the input array of integers with all values < 0 removed.