Wikibase
MediaWiki Wikibase extension
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, LanguageNameUtils $languageNameUtils, ApiQuery $queryModule, string $moduleName)
 
 execute ()
 
 getCacheMode ( $params)
 

Static Public Member Functions

static factory (ApiQuery $apiQuery, string $moduleName, LanguageNameUtils $languageNameUtils, WikibaseContentLanguages $wikibaseContentLanguages)
 

Protected Member Functions

 getAllowedParams ()
 
 getExamplesMessages ()
 

Private Attributes

 $wikibaseContentLanguages
 
 $expectKnownLanguageNames
 
 $languageNameUtils
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Api\MetaContentLanguages::__construct ( WikibaseContentLanguages  $wikibaseContentLanguages,
bool  $expectKnownLanguageNames,
LanguageNameUtils  $languageNameUtils,
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)
LanguageNameUtils$languageNameUtilssource of language names and autonyms
ApiQuery$queryModule
string$moduleName

Member Function Documentation

◆ execute()

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

◆ factory()

static Wikibase\Repo\Api\MetaContentLanguages::factory ( ApiQuery  $apiQuery,
string  $moduleName,
LanguageNameUtils  $languageNameUtils,
WikibaseContentLanguages  $wikibaseContentLanguages 
)
static

◆ 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

Member Data Documentation

◆ $expectKnownLanguageNames

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

◆ $languageNameUtils

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

◆ $wikibaseContentLanguages

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

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