MediaWiki  master
ApiPageSet Class Reference

This class contains a list of pages that the client has requested. More...

Inheritance diagram for ApiPageSet:
Collaboration diagram for ApiPageSet:

Public Member Functions

 __construct (ApiBase $dbSource, $flags=0, $defaultNamespace=NS_MAIN)
 
 execute ()
 Populate the PageSet from the request parameters. More...
 
 executeDryRun ()
 In case execute() is not called, call this method to mark all relevant parameters as used This prevents unused parameters from being reported as warnings. More...
 
 getAllowedParams ( $flags=0)
 
 getAllTitlesByNamespace ()
 Returns an array [ns][dbkey] => page_id for all requested titles. More...
 
 getCacheMode ( $params=null)
 Get the cache mode for the data generated by this module. More...
 
 getConvertedTitles ()
 Get a list of title conversions - maps a title to its converted version. More...
 
 getConvertedTitlesAsResult ( $result=null)
 Get a list of title conversions - maps a title to its converted version as a result array. More...
 
 getCustomField ( $fieldName)
 Get the value of a custom field previously requested through requestField() More...
 
 getDataSource ()
 Return the parameter name that is the source of data for this PageSet. More...
 
 getDeletedRevisionIDs ()
 Get the list of revision IDs that were associated with deleted titles. More...
 
 getGoodAndMissingPages ()
 Pages for good and missing titles. More...
 
 getGoodAndMissingTitles ()
 Title objects for good and missing titles. More...
 
 getGoodAndMissingTitlesByNamespace ()
 Returns an array [ns][dbkey] => page_id for all good and missing titles. More...
 
 getGoodPages ()
 Pages that were found in the database, including redirects. More...
 
 getGoodTitleCount ()
 Returns the number of found unique pages (not revisions) in the set. More...
 
 getGoodTitles ()
 Title objects that were found in the database, including redirects. More...
 
 getGoodTitlesByNamespace ()
 Returns an array [ns][dbkey] => page_id for all good titles. More...
 
 getInterwikiTitles ()
 Get a list of interwiki titles - maps a title to its interwiki prefix. More...
 
 getInterwikiTitlesAsResult ( $result=null, $iwUrl=false)
 Get a list of interwiki titles - maps a title to its interwiki prefix as result. More...
 
 getInvalidTitlesAndReasons ()
 Titles that were deemed invalid by Title::newFromText() The array's index will be unique and negative for each item. More...
 
 getInvalidTitlesAndRevisions ( $invalidChecks=[ 'invalidTitles', 'special', 'missingIds', 'missingRevIds', 'missingTitles', 'interwikiTitles'])
 Get an array of invalid/special/missing titles. More...
 
 getLiveRevisionIDs ()
 Get the list of non-deleted revision IDs (requested with the revids= parameter) More...
 
 getMissingPageIDs ()
 Page IDs that were not found in the database. More...
 
 getMissingPages ()
 Pages that were NOT found in the database. More...
 
 getMissingRevisionIDs ()
 Revision IDs that were not found in the database. More...
 
 getMissingRevisionIDsAsResult ( $result=null)
 Revision IDs that were not found in the database as result array. More...
 
 getMissingTitles ()
 Title objects that were NOT found in the database. More...
 
 getMissingTitlesByNamespace ()
 Returns an array [ns][dbkey] => fake_page_id for all missing titles. More...
 
 getNormalizedTitles ()
 Get a list of title normalizations - maps a title to its normalized version. More...
 
 getNormalizedTitlesAsResult ( $result=null)
 Get a list of title normalizations - maps a title to its normalized version in the form of result array. More...
 
 getPages ()
 All existing and missing pages including redirects. More...
 
 getPageTableFields ()
 Get the fields that have to be queried from the page table: the ones requested through requestField() and a few basic ones we always need. More...
 
 getRedirectTargets ()
 Get a list of redirect resolutions - maps a title to its redirect target. More...
 
 getRedirectTitles ()
 Get a list of redirect resolutions - maps a title to its redirect target. More...
 
 getRedirectTitlesAsResult ( $result=null)
 Get a list of redirect resolutions - maps a title to its redirect target. More...
 
 getRevisionCount ()
 Returns the number of revisions (requested with revids= parameter). More...
 
 getRevisionIDs ()
 Get the list of valid revision IDs (requested with the revids= parameter) More...
 
 getSpecialPages ()
 Get the list of pages with negative namespace. More...
 
 getSpecialTitles ()
 Get the list of titles with negative namespace. More...
 
 getTitleCount ()
 Returns the number of unique pages (not revisions) in the set. More...
 
 getTitles ()
 All existing and missing pages including redirects. More...
 
 handleParamNormalization ( $paramName, $value, $rawValue)
 Handle when a parameter was Unicode-normalized. More...
 
 isResolvingRedirects ()
 Check whether this PageSet is resolving redirects. More...
 
 populateFromPageIDs ( $pageIDs)
 Populate this PageSet from a list of page IDs. More...
 
 populateFromQueryResult ( $db, $queryResult)
 Populate this PageSet from a rowset returned from the database. More...
 
 populateFromRevisionIDs ( $revIDs)
 Populate this PageSet from a list of revision IDs. More...
 
 populateFromTitles ( $titles)
 Populate this PageSet. More...
 
 populateGeneratorData (&$result, array $path=[])
 Populate the generator data for all titles in the result. More...
 
 processDbRow ( $row)
 Extract all requested fields from the row received from the database. More...
 
 requestField ( $fieldName)
 Request an additional field from the page table. More...
 
 setGeneratorData ( $title, array $data)
 Set data for a title. More...
 
 setRedirectMergePolicy ( $callable)
 Controls how generator data about a redirect source is merged into the generator data for the redirect target. More...
 
- Public Member Functions inherited from ApiBase
 __construct (ApiMain $mainModule, $moduleName, $modulePrefix='')
 
 getModuleManager ()
 Get the module manager, or null if this module has no sub-modules. More...
 
 getCustomPrinter ()
 If the module may only be used with a certain format module, it should override this method to return an instance of that formatter. More...
 
 getHelpUrls ()
 Return links to more detailed help pages about the module. More...
 
 shouldCheckMaxlag ()
 Indicates if this module needs maxlag to be checked. More...
 
 isReadMode ()
 Indicates whether this module requires read rights. More...
 
 isWriteMode ()
 Indicates whether this module requires write mode. More...
 
 mustBePosted ()
 Indicates whether this module must be called with a POST request. More...
 
 isDeprecated ()
 Indicates whether this module is deprecated. More...
 
 isInternal ()
 Indicates whether this module is "internal" Internal API modules are not (yet) intended for 3rd party use and may be unstable. More...
 
 needsToken ()
 Returns the token type this module requires in order to execute. More...
 
 getConditionalRequestData ( $condition)
 Returns data for HTTP conditional request mechanisms. More...
 
 getModuleName ()
 Get the name of the module being executed by this instance. More...
 
 getModulePrefix ()
 Get parameter prefix (usually two letters or an empty string). More...
 
 getMain ()
 Get the main module. More...
 
 isMain ()
 Returns true if this module is the main module ($this === $this->mMainModule), false otherwise. More...
 
 getParent ()
 Get the parent of this module. More...
 
 lacksSameOriginSecurity ()
 Returns true if the current request breaks the same-origin policy. More...
 
 getModulePath ()
 Get the path to this module. More...
 
 getModuleFromPath ( $path)
 Get a module from its module path. More...
 
 getResult ()
 Get the result object. More...
 
 getErrorFormatter ()
 
 getContinuationManager ()
 
 setContinuationManager (ApiContinuationManager $manager=null)
 
 dynamicParameterDocumentation ()
 Indicate if the module supports dynamically-determined parameters that cannot be included in self::getAllowedParams(). More...
 
 encodeParamName ( $paramName)
 This method mangles parameter name based on the prefix supplied to the constructor. More...
 
 extractRequestParams ( $options=[])
 Using getAllowedParams(), this function makes an array of the values provided by the user, with key being the name of the variable, and value - validated value from user or default. More...
 
 requireOnlyOneParameter ( $params,... $required)
 Die if none or more than one of a certain set of parameters is set and not false. More...
 
 requireMaxOneParameter ( $params,... $required)
 Die if more than one of a certain set of parameters is set and not false. More...
 
 requireAtLeastOneParameter ( $params,... $required)
 Die if none of a certain set of parameters is set and not false. More...
 
 requirePostedParameters ( $params, $prefix='prefix')
 Die if any of the specified parameters were found in the query part of the URL rather than the post body. More...
 
 getTitleOrPageId ( $params, $load=false)
 Get a WikiPage object from a title or pageid param, if possible. More...
 
 getTitleFromTitleOrPageId ( $params)
 Get a Title object from a title or pageid param, if possible. More...
 
 validateToken ( $token, array $params)
 Validate the supplied token. More...
 
 getWatchlistUser ( $params)
 Gets the user for whom to get the watchlist. More...
 
 errorArrayToStatus (array $errors, User $user=null)
 Turn an array of message keys or key+param arrays into a Status. More...
 
 addBlockInfoToStatus (StatusValue $status, Authority $user=null)
 Add block info to block messages in a Status. More...
 
 addWarning ( $msg, $code=null, $data=null)
 Add a warning for this module. More...
 
 addDeprecation ( $msg, $feature, $data=[])
 Add a deprecation warning for this module. More...
 
 addError ( $msg, $code=null, $data=null)
 Add an error for this module without aborting. More...
 
 addMessagesFromStatus (StatusValue $status, $types=[ 'warning', 'error'], array $filter=[])
 Add warnings and/or errors from a Status. More...
 
 dieWithError ( $msg, $code=null, $data=null, $httpCode=0)
 Abort execution with an error. More...
 
 dieWithException (Throwable $exception, array $options=[])
 Abort execution with an error derived from a throwable. More...
 
 dieBlocked (Block $block)
 Throw an ApiUsageException, which will (if uncaught) call the main module's error handler and die with an error message including block info. More...
 
 dieStatus (StatusValue $status)
 Throw an ApiUsageException based on the Status object. More...
 
 dieReadOnly ()
 Helper function for readonly errors. More...
 
 checkUserRightsAny ( $rights, $user=null)
 Helper function for permission-denied errors. More...
 
 checkTitleUserPermissions ( $pageIdentity, $actions, array $options=[])
 Helper function for permission-denied errors. More...
 
 dieWithErrorOrDebug ( $msg, $code=null, $data=null, $httpCode=null)
 Will only set a warning instead of failing if the global $wgDebugAPI is set to true. More...
 
 logFeatureUsage ( $feature)
 Write logging information for API features to a debug log, for usage analysis. More...
 
 getFinalSummary ()
 Get final module summary. More...
 
 getFinalDescription ()
 Get final module description, after hooks have had a chance to tweak it as needed. More...
 
 getFinalParams ( $flags=0)
 Get final list of parameters, after hooks have had a chance to tweak it as needed. More...
 
 getFinalParamDescription ()
 Get final parameter descriptions, after hooks have had a chance to tweak it as needed. More...
 
 modifyHelp (array &$help, array $options, array &$tocData)
 Called from ApiHelp before the pieces are joined together and returned. More...
 
- Public Member Functions inherited from ContextSource
 canUseWikiPage ()
 Check whether a WikiPage object can be get with getWikiPage(). More...
 
 exportSession ()
 Export the resolved user IP, HTTP headers, user ID, and session ID. More...
 
 getActionName ()
 Get the action name for the current web request. More...
 
 getAuthority ()
 
 getConfig ()
 
 getContext ()
 Get the base IContextSource object. More...
 
 getCsrfTokenSet ()
 Get a repository to obtain and match CSRF tokens. More...
 
 getLanguage ()
 
 getOutput ()
 
 getRequest ()
 
 getSkin ()
 
 getStats ()
 
 getTiming ()
 
 getTitle ()
 
 getUser ()
 
 getWikiPage ()
 Get the WikiPage object. More...
 
 msg ( $key,... $params)
 Get a Message object with context set Parameters are the same as wfMessage() More...
 
 setContext (IContextSource $context)
 

Protected Member Functions

 getDB ()
 Get the database connection (read-only) More...
 
- Protected Member Functions inherited from ApiBase
 getExamplesMessages ()
 Returns usage examples for this module. More...
 
 getAllowedParams ()
 Returns an array of allowed parameters (parameter name) => (default value) or (parameter name) => (array with PARAM_* constants as keys) Don't call this function directly: use getFinalParams() to allow hooks to modify parameters as needed. More...
 
 getWebUITokenSalt (array $params)
 Fetch the salt used in the Web UI corresponding to this module. More...
 
 getPermissionManager ()
 Obtain a PermissionManager instance that subclasses may use in their authorization checks. More...
 
 getHookContainer ()
 Get a HookContainer, for running extension hooks or for hook metadata. More...
 
 getHookRunner ()
 Get an ApiHookRunner for running core API hooks. More...
 
 getParameter ( $paramName, $parseLimit=true)
 Get a value for the given parameter. More...
 
 getParameterFromSettings ( $name, $settings, $parseLimit)
 Using the settings determine the value for the given parameter. More...
 
 useTransactionalTimeLimit ()
 Call wfTransactionalTimeLimit() if this request was POSTed. More...
 
 filterIDs ( $fields, array $ids)
 Filter out-of-range values from a list of positive integer IDs. More...
 
 dieContinueUsageIf ( $condition)
 Die with the 'badcontinue' error. More...
 
 getSummaryMessage ()
 Return the summary message. More...
 
 getExtendedDescription ()
 Return the extended help text message. More...
 
 getHelpFlags ()
 Generates the list of flags for the help screen and for action=paraminfo. More...
 
 getModuleSourceInfo ()
 Returns information about the source of this module, if known. More...
 

Private Member Functions

 executeInternal ( $isDryRun)
 Populate the PageSet from the request parameters. More...
 
 getGenerators ()
 Get an array of all available generators. More...
 
 initFromPageIds ( $pageids, $filterIds=true)
 Does the same as initFromTitles(), but is based on page IDs instead. More...
 
 initFromQueryResult ( $res, &$remaining=null, $processTitles=null)
 Iterate through the result of the query on 'page' table, and for each row create and store title object and save any extra fields requested. More...
 
 initFromRevIDs ( $revids)
 Does the same as initFromTitles(), but is based on revision IDs instead. More...
 
 initFromTitles ( $titles)
 This method populates internal variables with page information based on the given array of title strings. More...
 
 loadRedirectTargets ()
 Get the targets of the pending redirects from the database. More...
 
 processTitlesArray ( $titles)
 Given an array of title strings, convert them into Title objects. More...
 
 resolvePendingRedirects ()
 Resolve any redirects in the result if redirect resolution was requested. More...
 
 resolveRedirectTitleDest (Title $titleFrom)
 Resolve the title a redirect points to. More...
 

Static Private Member Functions

static addValues (array &$result, $values, $flags=[], $name=null)
 Add all items from $values into the result. More...
 

Private Attributes

Language $contentLanguage
 
GenderCache $genderCache
 
ILanguageConverter $languageConverter
 
LinkBatchFactory $linkBatchFactory
 
LinkCache $linkCache
 
bool $mAllowGenerator
 
int[][] $mAllPages = []
 [ns][dbkey] => page_id or negative when missing More...
 
int[][] $mAllSpecials = []
 separate from mAllPages to avoid breaking getAllTitlesByNamespace() More...
 
string $mCacheMode = 'public'
 
string[] $mConvertedTitles = []
 
bool $mConvertTitles
 
ApiBase $mDbSource
 used for getDb() call More...
 
int $mDefaultNamespace
 
int[] $mDeletedRevIDs = []
 Array of revID (int) => pageID (int) More...
 
int $mFakePageId = -1
 
array[][] $mGeneratorData = []
 [ns][dbkey] => data array More...
 
int[][] $mGoodAndMissingPages = []
 [ns][dbkey] => page_id or negative when missing More...
 
int[][] $mGoodPages = []
 [ns][dbkey] => page_id More...
 
int[] $mGoodRevIDs = []
 Array of revID (int) => pageID (int) More...
 
Title[] $mGoodTitles = []
 
string[] $mInterwikiTitles = []
 
array[] $mInvalidTitles = []
 [fake_page_id] => [ 'title' => $title, 'invalidreason' => $reason ] More...
 
int[] $mLiveRevIDs = []
 Array of revID (int) => pageID (int) More...
 
int[] $mMissingPageIDs = []
 
int[][] $mMissingPages = []
 [ns][dbkey] => fake page_id More...
 
int[] $mMissingRevIDs = []
 
Title[] $mMissingTitles = []
 
string[] $mNormalizedTitles = []
 
array $mParams
 
Title[] $mPendingRedirectIDs = []
 
Title[][] $mPendingRedirectSpecialPages = []
 [dbkey] => [ Title $from, Title $to ] More...
 
callable null $mRedirectMergePolicy
 
Title[] $mRedirectTitles = []
 
array $mRequestedPageFields = []
 
Title[] $mResolvedRedirectTitles = []
 
bool $mResolveRedirects
 
Title[] $mSpecialTitles = []
 
Title[] $mTitles = []
 
NamespaceInfo $namespaceInfo
 
SpecialPageFactory $specialPageFactory
 
TitleFactory $titleFactory
 
WikiPageFactory $wikiPageFactory
 
const DISABLE_GENERATORS = 1
 Constructor flag: The new instance of ApiPageSet will ignore the 'generator=' parameter. More...
 

Static Private Attributes

static string[] null $generators = null
 see getGenerators() More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ApiBase
static makeMessage ( $msg, IContextSource $context, array $params=null)
 Create a Message from a string or array. More...
 
static clearCacheForTest ()
 Reset static caches of database state. More...
 
- Public Attributes inherited from ApiBase
const PARAM_RANGE_ENFORCE = 'api-param-range-enforce'
 (boolean) Inverse of IntegerDef::PARAM_IGNORE_RANGE More...
 
const PARAM_DFLT = ParamValidator::PARAM_DEFAULT
 
const PARAM_ISMULTI = ParamValidator::PARAM_ISMULTI
 
const PARAM_TYPE = ParamValidator::PARAM_TYPE
 
const PARAM_MAX = IntegerDef::PARAM_MAX
 
const PARAM_MAX2 = IntegerDef::PARAM_MAX2
 
const PARAM_MIN = IntegerDef::PARAM_MIN
 
const PARAM_ALLOW_DUPLICATES = ParamValidator::PARAM_ALLOW_DUPLICATES
 
const PARAM_DEPRECATED = ParamValidator::PARAM_DEPRECATED
 
const PARAM_REQUIRED = ParamValidator::PARAM_REQUIRED
 
const PARAM_SUBMODULE_MAP = SubmoduleDef::PARAM_SUBMODULE_MAP
 
const PARAM_SUBMODULE_PARAM_PREFIX = SubmoduleDef::PARAM_SUBMODULE_PARAM_PREFIX
 
const PARAM_ALL = ParamValidator::PARAM_ALL
 
const PARAM_EXTRA_NAMESPACES = NamespaceDef::PARAM_EXTRA_NAMESPACES
 
const PARAM_SENSITIVE = ParamValidator::PARAM_SENSITIVE
 
const PARAM_DEPRECATED_VALUES = EnumDef::PARAM_DEPRECATED_VALUES
 
const PARAM_ISMULTI_LIMIT1 = ParamValidator::PARAM_ISMULTI_LIMIT1
 
const PARAM_ISMULTI_LIMIT2 = ParamValidator::PARAM_ISMULTI_LIMIT2
 
const PARAM_MAX_BYTES = StringDef::PARAM_MAX_BYTES
 
const PARAM_MAX_CHARS = StringDef::PARAM_MAX_CHARS
 
const PARAM_HELP_MSG = 'api-param-help-msg'
 (string|array|Message) Specify an alternative i18n documentation message for this parameter. More...
 
const PARAM_HELP_MSG_APPEND = 'api-param-help-msg-append'
 ((string|array|Message)[]) Specify additional i18n messages to append to the normal message for this parameter. More...
 
const PARAM_HELP_MSG_INFO = 'api-param-help-msg-info'
 (array) Specify additional information tags for the parameter. More...
 
const PARAM_VALUE_LINKS = 'api-param-value-links'
 Deprecated and unused. More...
 
const PARAM_HELP_MSG_PER_VALUE = 'api-param-help-msg-per-value'
 ((string|array|Message)[]) When PARAM_TYPE is an array, this is an array mapping those values to $msg for ApiBase::makeMessage(). More...
 
const PARAM_TEMPLATE_VARS = 'param-template-vars'
 (array) Indicate that this is a templated parameter, and specify replacements. More...
 
const ALL_DEFAULT_STRING = '*'
 (string|array|Message) Specify an alternative i18n documentation message for this parameter. More...
 
const LIMIT_BIG1 = 500
 Fast query, standard limit. More...
 
const LIMIT_BIG2 = 5000
 Fast query, apihighlimits limit. More...
 
const LIMIT_SML1 = 50
 Slow query, standard limit. More...
 
const LIMIT_SML2 = 500
 Slow query, apihighlimits limit. More...
 
const GET_VALUES_FOR_HELP = 1
 getAllowedParams() flag: When set, the result could take longer to generate, but should be more thorough. More...
 
string $mModulePrefix
 (string|array|Message) Specify an alternative i18n documentation message for this parameter. More...
 
- Static Protected Member Functions inherited from ApiBase
static dieDebug ( $method, $message)
 Internal code errors should be reported with this method. More...
 

Detailed Description

This class contains a list of pages that the client has requested.

Initially, when the client passes in titles=, pageids=, or revisions= parameter, an instance of the ApiPageSet class will normalize titles, determine if the pages/revisions exist, and prefetch any additional page data requested.

When a generator is used, the result of the generator will become the input for the second instance of this class, and all subsequent actions will use the second instance for all their work.

Since
1.21 derives from ApiBase instead of ApiQueryBase

Definition at line 50 of file ApiPageSet.php.

Constructor & Destructor Documentation

◆ __construct()

ApiPageSet::__construct ( ApiBase  $dbSource,
  $flags = 0,
  $defaultNamespace = NS_MAIN 
)
Parameters
ApiBase$dbSourceModule implementing getDB(). Allows PageSet to reuse existing db connection from the shared state like ApiQuery.
int$flagsZero or more flags like DISABLE_GENERATORS
int$defaultNamespaceThe namespace to use if none is specified by a prefix.
Since
1.21 accepts $flags instead of two boolean values

Definition at line 217 of file ApiPageSet.php.

References DISABLE_GENERATORS, ApiBase\extractRequestParams(), ApiBase\getMain(), and ApiBase\getModuleName().

Member Function Documentation

◆ addValues()

static ApiPageSet::addValues ( array &  $result,
  $values,
  $flags = [],
  $name = null 
)
staticprivate

Add all items from $values into the result.

Parameters
array&$resultOutput
array$valuesValues to add
string[]$flagsThe names of boolean flags to mark this element
string | null$nameIf given, name of the value

Definition at line 193 of file ApiPageSet.php.

References ApiQueryBase\addTitleInfo().

◆ execute()

ApiPageSet::execute ( )

Populate the PageSet from the request parameters.

Reimplemented from ApiBase.

Definition at line 252 of file ApiPageSet.php.

References executeInternal().

◆ executeDryRun()

ApiPageSet::executeDryRun ( )

In case execute() is not called, call this method to mark all relevant parameters as used This prevents unused parameters from being reported as warnings.

Definition at line 245 of file ApiPageSet.php.

References executeInternal().

◆ executeInternal()

ApiPageSet::executeInternal (   $isDryRun)
private

Populate the PageSet from the request parameters.

Parameters
bool$isDryRunIf true, instantiates generator, but only to mark relevant parameters as used

Definition at line 261 of file ApiPageSet.php.

References $generator, $mDbSource, ApiBase\addWarning(), ApiBase\dieWithError(), ApiBase\encodeParamName(), ApiBase\getHookRunner(), ApiBase\getMain(), initFromPageIds(), initFromRevIDs(), initFromTitles(), and resolvePendingRedirects().

Referenced by execute(), and executeDryRun().

◆ getAllowedParams()

ApiPageSet::getAllowedParams (   $flags = 0)

◆ getAllTitlesByNamespace()

ApiPageSet::getAllTitlesByNamespace ( )

Returns an array [ns][dbkey] => page_id for all requested titles.

page_id is a unique negative number in case title was not found. Invalid titles will also have negative page IDs and will be in namespace 0

Returns
array

Definition at line 454 of file ApiPageSet.php.

References $mAllPages.

◆ getCacheMode()

ApiPageSet::getCacheMode (   $params = null)

Get the cache mode for the data generated by this module.

All PageSet users should take into account whether this returns a more-restrictive cache mode than the using module itself. For possible return values and other details about cache modes, see ApiMain::setCacheMode()

Public caching will only be allowed if all the modules that supply data for a given request return a cache mode of public.

Parameters
array | null$params
Returns
string
Since
1.21

Definition at line 1328 of file ApiPageSet.php.

◆ getConvertedTitles()

ApiPageSet::getConvertedTitles ( )

Get a list of title conversions - maps a title to its converted version.

Returns
string[] Array of raw_prefixed_title (string) => prefixed_title (string)

Definition at line 696 of file ApiPageSet.php.

◆ getConvertedTitlesAsResult()

ApiPageSet::getConvertedTitlesAsResult (   $result = null)

Get a list of title conversions - maps a title to its converted version as a result array.

Parameters
ApiResult | null$result
Returns
string[][] Array of (from, to) strings
Since
1.21

Definition at line 707 of file ApiPageSet.php.

References ApiResult\setIndexedTagName().

◆ getCustomField()

ApiPageSet::getCustomField (   $fieldName)

Get the value of a custom field previously requested through requestField()

Parameters
string$fieldName
Returns
mixed Field value

Definition at line 410 of file ApiPageSet.php.

◆ getDataSource()

ApiPageSet::getDataSource ( )

Return the parameter name that is the source of data for this PageSet.

If multiple source parameters are specified (e.g. titles and pageids), one will be named arbitrarily.

Returns
string|null

Definition at line 378 of file ApiPageSet.php.

◆ getDB()

ApiPageSet::getDB ( )
protected

Get the database connection (read-only)

Returns
IDatabase

Reimplemented from ApiBase.

Definition at line 1627 of file ApiPageSet.php.

◆ getDeletedRevisionIDs()

ApiPageSet::getDeletedRevisionIDs ( )

Get the list of revision IDs that were associated with deleted titles.

Returns
int[] Array of revID (int) => pageID (int)

Definition at line 839 of file ApiPageSet.php.

◆ getGenerators()

ApiPageSet::getGenerators ( )
private

Get an array of all available generators.

Returns
string[]

Definition at line 1698 of file ApiPageSet.php.

◆ getGoodAndMissingPages()

ApiPageSet::getGoodAndMissingPages ( )

Pages for good and missing titles.

Since
1.37
Returns
PageIdentity[]

Definition at line 579 of file ApiPageSet.php.

◆ getGoodAndMissingTitles()

ApiPageSet::getGoodAndMissingTitles ( )

Title objects for good and missing titles.

Deprecated:
since 1.37, use getGoodAndMissingPages() instead.
Returns
Title[]

Definition at line 570 of file ApiPageSet.php.

◆ getGoodAndMissingTitlesByNamespace()

ApiPageSet::getGoodAndMissingTitlesByNamespace ( )

Returns an array [ns][dbkey] => page_id for all good and missing titles.

Returns
array

Definition at line 561 of file ApiPageSet.php.

◆ getGoodPages()

ApiPageSet::getGoodPages ( )

Pages that were found in the database, including redirects.

If redirects are resolved, this will include existing redirect targets.

Since
1.37
Returns
PageIdentity[] Array page_id (int) => PageIdentity (obj)

Definition at line 514 of file ApiPageSet.php.

◆ getGoodTitleCount()

ApiPageSet::getGoodTitleCount ( )

Returns the number of found unique pages (not revisions) in the set.

Returns
int

Definition at line 522 of file ApiPageSet.php.

◆ getGoodTitles()

ApiPageSet::getGoodTitles ( )

Title objects that were found in the database, including redirects.

If redirects are resolved, this will include existing redirect targets.

Deprecated:
since 1.37, use getGoodPages() instead.
Returns
Title[] Array page_id (int) => Title (obj)

Definition at line 504 of file ApiPageSet.php.

◆ getGoodTitlesByNamespace()

ApiPageSet::getGoodTitlesByNamespace ( )

Returns an array [ns][dbkey] => page_id for all good titles.

Returns
array

Definition at line 494 of file ApiPageSet.php.

◆ getInterwikiTitles()

ApiPageSet::getInterwikiTitles ( )

Get a list of interwiki titles - maps a title to its interwiki prefix.

Returns
string[] Array of raw_prefixed_title (string) => interwiki_prefix (string)

Definition at line 727 of file ApiPageSet.php.

◆ getInterwikiTitlesAsResult()

ApiPageSet::getInterwikiTitlesAsResult (   $result = null,
  $iwUrl = false 
)

Get a list of interwiki titles - maps a title to its interwiki prefix as result.

Parameters
ApiResult | null$result
bool$iwUrl
Returns
string[][]
Since
1.21

Definition at line 739 of file ApiPageSet.php.

References $title, PROTO_CURRENT, and ApiResult\setIndexedTagName().

◆ getInvalidTitlesAndReasons()

ApiPageSet::getInvalidTitlesAndReasons ( )

Titles that were deemed invalid by Title::newFromText() The array's index will be unique and negative for each item.

Returns
array[] Array of arrays with 'title' and 'invalidreason' properties

Definition at line 588 of file ApiPageSet.php.

◆ getInvalidTitlesAndRevisions()

ApiPageSet::getInvalidTitlesAndRevisions (   $invalidChecks = [ 'invalidTitles',
'special'  ,
'missingIds'  ,
'missingRevIds'  ,
'missingTitles'  ,
'interwikiTitles']   
)

Get an array of invalid/special/missing titles.

Parameters
string[]$invalidChecksList of types of invalid titles to include. Recognized values are:
Returns
array Array suitable for inclusion in the response
Since
1.23

Definition at line 773 of file ApiPageSet.php.

References $title.

◆ getLiveRevisionIDs()

ApiPageSet::getLiveRevisionIDs ( )

Get the list of non-deleted revision IDs (requested with the revids= parameter)

Returns
int[] Array of revID (int) => pageID (int)

Definition at line 831 of file ApiPageSet.php.

◆ getMissingPageIDs()

ApiPageSet::getMissingPageIDs ( )

Page IDs that were not found in the database.

Returns
int[] Array of page IDs

Definition at line 596 of file ApiPageSet.php.

◆ getMissingPages()

ApiPageSet::getMissingPages ( )

Pages that were NOT found in the database.

The array's index will be negative for each item. If redirects are resolved, this will include missing redirect targets.

Since
1.37
Returns
PageIdentity[]

Definition at line 553 of file ApiPageSet.php.

◆ getMissingRevisionIDs()

ApiPageSet::getMissingRevisionIDs ( )

Revision IDs that were not found in the database.

Returns
int[] Array of revision IDs

Definition at line 847 of file ApiPageSet.php.

◆ getMissingRevisionIDsAsResult()

ApiPageSet::getMissingRevisionIDsAsResult (   $result = null)

Revision IDs that were not found in the database as result array.

Parameters
ApiResult | null$result
Returns
int[][]
Since
1.21

Definition at line 857 of file ApiPageSet.php.

References ApiResult\setIndexedTagName().

◆ getMissingTitles()

ApiPageSet::getMissingTitles ( )

Title objects that were NOT found in the database.

The array's index will be negative for each item. If redirects are resolved, this will include missing redirect targets.

Deprecated:
since 1.37, use getMissingPages instead.
Returns
Title[]

Definition at line 542 of file ApiPageSet.php.

◆ getMissingTitlesByNamespace()

ApiPageSet::getMissingTitlesByNamespace ( )

Returns an array [ns][dbkey] => fake_page_id for all missing titles.

fake_page_id is a unique negative number.

Returns
array

Definition at line 531 of file ApiPageSet.php.

◆ getNormalizedTitles()

ApiPageSet::getNormalizedTitles ( )

Get a list of title normalizations - maps a title to its normalized version.

Returns
string[] Array of raw_prefixed_title (string) => prefixed_title (string)

Definition at line 663 of file ApiPageSet.php.

◆ getNormalizedTitlesAsResult()

ApiPageSet::getNormalizedTitlesAsResult (   $result = null)

Get a list of title normalizations - maps a title to its normalized version in the form of result array.

Parameters
ApiResult | null$result
Returns
string[][]
Since
1.21

Definition at line 674 of file ApiPageSet.php.

References ApiResult\setIndexedTagName().

◆ getPages()

ApiPageSet::getPages ( )

All existing and missing pages including redirects.

Does not include special pages, interwiki links, and invalid titles. If redirects are resolved, both the redirect and the target will be included here.

Since
1.37
Returns
PageIdentity[]

Definition at line 478 of file ApiPageSet.php.

◆ getPageTableFields()

ApiPageSet::getPageTableFields ( )

Get the fields that have to be queried from the page table: the ones requested through requestField() and a few basic ones we always need.

Returns
string[] Array of field names

Definition at line 420 of file ApiPageSet.php.

References ContextSource\getConfig(), and LinkCache\getSelectFields().

◆ getRedirectTargets()

ApiPageSet::getRedirectTargets ( )

Get a list of redirect resolutions - maps a title to its redirect target.

Since
1.37
Returns
LinkTarget[]

Definition at line 616 of file ApiPageSet.php.

◆ getRedirectTitles()

ApiPageSet::getRedirectTitles ( )

Get a list of redirect resolutions - maps a title to its redirect target.

Deprecated:
since 1.37, use getRedirectTargets instead.
Returns
Title[]

Definition at line 606 of file ApiPageSet.php.

◆ getRedirectTitlesAsResult()

ApiPageSet::getRedirectTitlesAsResult (   $result = null)

Get a list of redirect resolutions - maps a title to its redirect target.

Includes generator data for redirect source when available.

Parameters
ApiResult | null$result
Returns
string[][]
Since
1.21

Definition at line 627 of file ApiPageSet.php.

References ApiResult\setIndexedTagName().

◆ getRevisionCount()

ApiPageSet::getRevisionCount ( )

Returns the number of revisions (requested with revids= parameter).

Returns
int Number of revisions.

Definition at line 894 of file ApiPageSet.php.

◆ getRevisionIDs()

ApiPageSet::getRevisionIDs ( )

Get the list of valid revision IDs (requested with the revids= parameter)

Returns
int[] Array of revID (int) => pageID (int)

Definition at line 823 of file ApiPageSet.php.

◆ getSpecialPages()

ApiPageSet::getSpecialPages ( )

Get the list of pages with negative namespace.

Since
1.37
Returns
PageReference[]

Definition at line 886 of file ApiPageSet.php.

◆ getSpecialTitles()

ApiPageSet::getSpecialTitles ( )

Get the list of titles with negative namespace.

Deprecated:
since 1.37, use getSpecialPages() instead.
Returns
Title[]

Definition at line 877 of file ApiPageSet.php.

◆ getTitleCount()

ApiPageSet::getTitleCount ( )

Returns the number of unique pages (not revisions) in the set.

Returns
int

Definition at line 486 of file ApiPageSet.php.

◆ getTitles()

ApiPageSet::getTitles ( )

All existing and missing pages including redirects.

Does not include special pages, interwiki links, and invalid titles. If redirects are resolved, both the redirect and the target will be included here.

Deprecated:
since 1.37, use getPages() instead.
Returns
Title[]

Definition at line 466 of file ApiPageSet.php.

References $mTitles.

◆ handleParamNormalization()

ApiPageSet::handleParamNormalization (   $paramName,
  $value,
  $rawValue 
)

Handle when a parameter was Unicode-normalized.

Since
1.28
1.35 $paramName is prefixed
Access: internal
For overriding by subclasses and use by ApiParamValidatorCallbacks only.
Parameters
string$paramNamePrefixed parameter name
string$valueInput that will be used.
string$rawValueInput before normalization.

Reimplemented from ApiBase.

Definition at line 1677 of file ApiPageSet.php.

◆ initFromPageIds()

ApiPageSet::initFromPageIds (   $pageids,
  $filterIds = true 
)
private

Does the same as initFromTitles(), but is based on page IDs instead.

Parameters
int[]$pageids
bool$filterIdsWhether the IDs need filtering

Definition at line 1006 of file ApiPageSet.php.

References $res, and getDB().

Referenced by executeInternal().

◆ initFromQueryResult()

ApiPageSet::initFromQueryResult (   $res,
$remaining = null,
  $processTitles = null 
)
private

Iterate through the result of the query on 'page' table, and for each row create and store title object and save any extra fields requested.

Parameters
IResultWrapper | null$resDB Query result
array | null&$remainingArray of either pageID or ns/title elements (optional). If given, any missing items will go to $mMissingPageIDs and $mMissingTitles
bool | null$processTitlesMust be provided together with $remaining. If true, treat $remaining as an array of [ns][title] If false, treat it as an array of [pageIDs]

Definition at line 1046 of file ApiPageSet.php.

References $res, $title, ApiBase\dieDebug(), and if.

◆ initFromRevIDs()

ApiPageSet::initFromRevIDs (   $revids)
private

Does the same as initFromTitles(), but is based on revision IDs instead.

Parameters
int[]$revidsArray of revision IDs

Definition at line 1115 of file ApiPageSet.php.

References $res, $title, getAuthority(), and getDB().

Referenced by executeInternal().

◆ initFromTitles()

ApiPageSet::initFromTitles (   $titles)
private

This method populates internal variables with page information based on the given array of title strings.

Steps: #1 For each title, get data from page table #2 If page was not found in the DB, store it as missing

Additionally, when resolving redirects: #3 If no more redirects left, stop. #4 For each redirect, get its target from the redirect table. #5 Substitute the original LinkBatch object with the new list #6 Repeat from step #1

Parameters
string[] | LinkTarget[] | PageReference[]$titles

Definition at line 978 of file ApiPageSet.php.

References $res, and getDB().

Referenced by executeInternal().

◆ isResolvingRedirects()

ApiPageSet::isResolvingRedirects ( )

Check whether this PageSet is resolving redirects.

Returns
bool

Definition at line 366 of file ApiPageSet.php.

References $mResolveRedirects.

◆ loadRedirectTargets()

ApiPageSet::loadRedirectTargets ( )
private

Get the targets of the pending redirects from the database.

Also creates entries in the redirect table for redirects that don't have one.

Returns
LinkBatch

Definition at line 1235 of file ApiPageSet.php.

References $res, $title, getDB(), and Title\getPrefixedText().

◆ populateFromPageIDs()

ApiPageSet::populateFromPageIDs (   $pageIDs)

Populate this PageSet from a list of page IDs.

Parameters
int[]$pageIDs

Definition at line 910 of file ApiPageSet.php.

◆ populateFromQueryResult()

ApiPageSet::populateFromQueryResult (   $db,
  $queryResult 
)

Populate this PageSet from a rowset returned from the database.

Note that the query result must include the columns returned by $this->getPageTableFields().

Parameters
IDatabase$db
IResultWrapper$queryResult

Definition at line 923 of file ApiPageSet.php.

◆ populateFromRevisionIDs()

ApiPageSet::populateFromRevisionIDs (   $revIDs)

Populate this PageSet from a list of revision IDs.

Parameters
int[]$revIDsArray of revision IDs

Definition at line 931 of file ApiPageSet.php.

◆ populateFromTitles()

ApiPageSet::populateFromTitles (   $titles)

Populate this PageSet.

Parameters
string[] | LinkTarget[] | PageReference[]$titles

Definition at line 902 of file ApiPageSet.php.

◆ populateGeneratorData()

ApiPageSet::populateGeneratorData ( $result,
array  $path = [] 
)

Populate the generator data for all titles in the result.

The page data may be inserted into an ApiResult object or into an associative array. The $path parameter specifies the path within the ApiResult or array to find the "pages" node.

The "pages" node itself must be an associative array mapping the page ID or fake page ID values returned by this pageset (see self::getAllTitlesByNamespace() and self::getSpecialTitles()) to associative arrays of page data. Each of those subarrays will have the data from self::setGeneratorData() merged in.

Data that was set by self::setGeneratorData() for pages not in the "pages" node will be ignored.

Parameters
ApiResult | array&$result
array$path
Returns
bool Whether the data fit

Definition at line 1540 of file ApiPageSet.php.

References $path, $title, ApiResult\addValue(), NS_SPECIAL, and ApiResult\OVERRIDE.

◆ processDbRow()

ApiPageSet::processDbRow (   $row)

Extract all requested fields from the row received from the database.

Parameters
stdClass$rowResult row

Definition at line 939 of file ApiPageSet.php.

References $title, and if.

◆ processTitlesArray()

ApiPageSet::processTitlesArray (   $titles)
private

Given an array of title strings, convert them into Title objects.

Alternatively, an array of Title objects may be given. This method validates access rights for the title, and appends normalization values to the output.

Parameters
string[] | LinkTarget[] | PageReference[]$titles
Returns
LinkBatch

Definition at line 1341 of file ApiPageSet.php.

References $title, and NS_SPECIAL.

◆ requestField()

ApiPageSet::requestField (   $fieldName)

Request an additional field from the page table.

Must be called before execute()

Parameters
string$fieldName

Definition at line 400 of file ApiPageSet.php.

◆ resolvePendingRedirects()

ApiPageSet::resolvePendingRedirects ( )
private

Resolve any redirects in the result if redirect resolution was requested.

This function is called repeatedly until all redirects have been resolved.

Definition at line 1198 of file ApiPageSet.php.

References $res, and getDB().

Referenced by executeInternal().

◆ resolveRedirectTitleDest()

ApiPageSet::resolveRedirectTitleDest ( Title  $titleFrom)
private

Resolve the title a redirect points to.

Will follow sequential redirects to find the final page. In the case of a redirect cycle the original page will be returned. self::resolvePendingRedirects must be executed before calling this method.

Parameters
Title$titleFromA title from $this->mResolvedRedirectTitles
Returns
Title

Definition at line 1507 of file ApiPageSet.php.

◆ setGeneratorData()

ApiPageSet::setGeneratorData (   $title,
array  $data 
)

Set data for a title.

This data may be extracted into an ApiResult using self::populateGeneratorData. This should generally be limited to data that is likely to be particularly useful to end users rather than just being a dump of everything returned in non-generator mode.

Redirects here will not be followed, even if 'redirects' was specified, since in the case of multiple redirects we can't know which source's data to use on the target.

Parameters
PageReference | LinkTarget$title
array$data

Definition at line 1467 of file ApiPageSet.php.

References $title.

◆ setRedirectMergePolicy()

ApiPageSet::setRedirectMergePolicy (   $callable)

Controls how generator data about a redirect source is merged into the generator data for the redirect target.

When not set no data is merged. Note that if multiple titles redirect to the same target the order of operations is undefined.

Example to include generated data from redirect in target, prefering the data generated for the destination when there is a collision:

$pageSet->setRedirectMergePolicy( function( array $current, array $new ) {
return $current + $new;
} );
Parameters
callable | null$callableRecieves two array arguments, first the generator data for the redirect target and second the generator data for the redirect source. Returns the resulting generator data to use for the redirect target.

Definition at line 1492 of file ApiPageSet.php.

Member Data Documentation

◆ $contentLanguage

Language ApiPageSet::$contentLanguage
private

Definition at line 160 of file ApiPageSet.php.

◆ $genderCache

GenderCache ApiPageSet::$genderCache
private

Definition at line 169 of file ApiPageSet.php.

◆ $generators

string [] null ApiPageSet::$generators = null
staticprivate

see getGenerators()

Definition at line 157 of file ApiPageSet.php.

◆ $languageConverter

ILanguageConverter ApiPageSet::$languageConverter
private

Definition at line 178 of file ApiPageSet.php.

◆ $linkBatchFactory

LinkBatchFactory ApiPageSet::$linkBatchFactory
private

Definition at line 172 of file ApiPageSet.php.

◆ $linkCache

LinkCache ApiPageSet::$linkCache
private

Definition at line 163 of file ApiPageSet.php.

◆ $mAllowGenerator

bool ApiPageSet::$mAllowGenerator
private

Definition at line 70 of file ApiPageSet.php.

◆ $mAllPages

int [][] ApiPageSet::$mAllPages = []
private

[ns][dbkey] => page_id or negative when missing

Definition at line 73 of file ApiPageSet.php.

Referenced by getAllTitlesByNamespace().

◆ $mAllSpecials

int [][] ApiPageSet::$mAllSpecials = []
private

separate from mAllPages to avoid breaking getAllTitlesByNamespace()

Definition at line 106 of file ApiPageSet.php.

◆ $mCacheMode

string ApiPageSet::$mCacheMode = 'public'
private

Definition at line 145 of file ApiPageSet.php.

◆ $mConvertedTitles

string [] ApiPageSet::$mConvertedTitles = []
private

Definition at line 124 of file ApiPageSet.php.

◆ $mConvertTitles

bool ApiPageSet::$mConvertTitles
private

Definition at line 67 of file ApiPageSet.php.

◆ $mDbSource

ApiBase ApiPageSet::$mDbSource
private

used for getDb() call

Definition at line 58 of file ApiPageSet.php.

Referenced by executeInternal().

◆ $mDefaultNamespace

int ApiPageSet::$mDefaultNamespace
private

Definition at line 151 of file ApiPageSet.php.

◆ $mDeletedRevIDs

int [] ApiPageSet::$mDeletedRevIDs = []
private

Array of revID (int) => pageID (int)

Definition at line 133 of file ApiPageSet.php.

◆ $mFakePageId

int ApiPageSet::$mFakePageId = -1
private

Definition at line 142 of file ApiPageSet.php.

◆ $mGeneratorData

array [][] ApiPageSet::$mGeneratorData = []
private

[ns][dbkey] => data array

Definition at line 139 of file ApiPageSet.php.

◆ $mGoodAndMissingPages

int [][] ApiPageSet::$mGoodAndMissingPages = []
private

[ns][dbkey] => page_id or negative when missing

Definition at line 79 of file ApiPageSet.php.

◆ $mGoodPages

int [][] ApiPageSet::$mGoodPages = []
private

[ns][dbkey] => page_id

Definition at line 82 of file ApiPageSet.php.

◆ $mGoodRevIDs

int [] ApiPageSet::$mGoodRevIDs = []
private

Array of revID (int) => pageID (int)

Definition at line 127 of file ApiPageSet.php.

◆ $mGoodTitles

Title [] ApiPageSet::$mGoodTitles = []
private

Definition at line 85 of file ApiPageSet.php.

◆ $mInterwikiTitles

string [] ApiPageSet::$mInterwikiTitles = []
private

Definition at line 112 of file ApiPageSet.php.

◆ $mInvalidTitles

array [] ApiPageSet::$mInvalidTitles = []
private

[fake_page_id] => [ 'title' => $title, 'invalidreason' => $reason ]

Definition at line 94 of file ApiPageSet.php.

◆ $mLiveRevIDs

int [] ApiPageSet::$mLiveRevIDs = []
private

Array of revID (int) => pageID (int)

Definition at line 130 of file ApiPageSet.php.

◆ $mMissingPageIDs

int [] ApiPageSet::$mMissingPageIDs = []
private

Definition at line 97 of file ApiPageSet.php.

◆ $mMissingPages

int [][] ApiPageSet::$mMissingPages = []
private

[ns][dbkey] => fake page_id

Definition at line 88 of file ApiPageSet.php.

◆ $mMissingRevIDs

int [] ApiPageSet::$mMissingRevIDs = []
private

Definition at line 136 of file ApiPageSet.php.

◆ $mMissingTitles

Title [] ApiPageSet::$mMissingTitles = []
private

Definition at line 91 of file ApiPageSet.php.

◆ $mNormalizedTitles

string [] ApiPageSet::$mNormalizedTitles = []
private

Definition at line 109 of file ApiPageSet.php.

◆ $mParams

array ApiPageSet::$mParams
private

Definition at line 61 of file ApiPageSet.php.

◆ $mPendingRedirectIDs

Title [] ApiPageSet::$mPendingRedirectIDs = []
private

Definition at line 115 of file ApiPageSet.php.

◆ $mPendingRedirectSpecialPages

Title [][] ApiPageSet::$mPendingRedirectSpecialPages = []
private

[dbkey] => [ Title $from, Title $to ]

Definition at line 118 of file ApiPageSet.php.

◆ $mRedirectMergePolicy

callable null ApiPageSet::$mRedirectMergePolicy
private

Definition at line 154 of file ApiPageSet.php.

◆ $mRedirectTitles

Title [] ApiPageSet::$mRedirectTitles = []
private

Definition at line 100 of file ApiPageSet.php.

◆ $mRequestedPageFields

array ApiPageSet::$mRequestedPageFields = []
private

Definition at line 148 of file ApiPageSet.php.

◆ $mResolvedRedirectTitles

Title [] ApiPageSet::$mResolvedRedirectTitles = []
private

Definition at line 121 of file ApiPageSet.php.

◆ $mResolveRedirects

bool ApiPageSet::$mResolveRedirects
private

Definition at line 64 of file ApiPageSet.php.

Referenced by isResolvingRedirects().

◆ $mSpecialTitles

Title [] ApiPageSet::$mSpecialTitles = []
private

Definition at line 103 of file ApiPageSet.php.

◆ $mTitles

Title [] ApiPageSet::$mTitles = []
private

Definition at line 76 of file ApiPageSet.php.

Referenced by getTitles().

◆ $namespaceInfo

NamespaceInfo ApiPageSet::$namespaceInfo
private

Definition at line 166 of file ApiPageSet.php.

◆ $specialPageFactory

SpecialPageFactory ApiPageSet::$specialPageFactory
private

Definition at line 181 of file ApiPageSet.php.

◆ $titleFactory

TitleFactory ApiPageSet::$titleFactory
private

Definition at line 175 of file ApiPageSet.php.

◆ $wikiPageFactory

WikiPageFactory ApiPageSet::$wikiPageFactory
private

Definition at line 184 of file ApiPageSet.php.

◆ DISABLE_GENERATORS

const ApiPageSet::DISABLE_GENERATORS = 1
private

Constructor flag: The new instance of ApiPageSet will ignore the 'generator=' parameter.

Since
1.21

Definition at line 55 of file ApiPageSet.php.

Referenced by __construct().


The documentation for this class was generated from the following file: