Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Api\MetaContentLanguages Class Reference
+ Inheritance diagram for Wikibase\Repo\Api\MetaContentLanguages:
+ Collaboration diagram for Wikibase\Repo\Api\MetaContentLanguages:

Public Member Functions

 __construct (WikibaseContentLanguages $wikibaseContentLanguages, bool $expectKnownLanguageNames, ApiQuery $queryModule, string $moduleName)
 
 execute ()
 
 getCacheMode ( $params)
 

Static Public Member Functions

static newFromGlobalState (ApiQuery $apiQuery, string $moduleName)
 

Protected Member Functions

 getAllowedParams ()
 
 getExamplesMessages ()
 

Private Attributes

 $wikibaseContentLanguages
 
 $expectKnownLanguageNames
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Api\MetaContentLanguages::__construct ( WikibaseContentLanguages  $wikibaseContentLanguages,
bool  $expectKnownLanguageNames,
ApiQuery  $queryModule,
string  $moduleName 
)
Parameters
WikibaseContentLanguages$wikibaseContentLanguages
bool$expectKnownLanguageNameswhether we should expect MediaWiki to know a language name for any language code that occurs in the content languages (if true, warnings will be raised for any language without known language name)
ApiQuery$queryModule
string$moduleName

Member Function Documentation

◆ execute()

Wikibase\Repo\Api\MetaContentLanguages::execute ( )

◆ getAllowedParams()

Wikibase\Repo\Api\MetaContentLanguages::getAllowedParams ( )
protected

◆ getCacheMode()

Wikibase\Repo\Api\MetaContentLanguages::getCacheMode (   $params)
See also
ApiQueryBase::getCacheMode
Parameters
array$params
Returns
string

◆ getExamplesMessages()

Wikibase\Repo\Api\MetaContentLanguages::getExamplesMessages ( )
protected

◆ newFromGlobalState()

static Wikibase\Repo\Api\MetaContentLanguages::newFromGlobalState ( ApiQuery  $apiQuery,
string  $moduleName 
)
static

Member Data Documentation

◆ $expectKnownLanguageNames

Wikibase\Repo\Api\MetaContentLanguages::$expectKnownLanguageNames
private

◆ $wikibaseContentLanguages

Wikibase\Repo\Api\MetaContentLanguages::$wikibaseContentLanguages
private

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