Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\View\DummyLocalizedTextProvider Class Reference

A LocalizedTextProvider implementation that returns a string containing the given key and params. More...

+ Inheritance diagram for Wikibase\View\DummyLocalizedTextProvider:
+ Collaboration diagram for Wikibase\View\DummyLocalizedTextProvider:

Public Member Functions

 get ( $key, array $params=[])
 
 getEscaped ( $key, array $params=[])
 
 has ( $key)
 
 getLanguageOf ( $key)
 

Detailed Description

A LocalizedTextProvider implementation that returns a string containing the given key and params.

Author
Adrian Heine adria.nosp@m.n.he.nosp@m.ine@w.nosp@m.ikim.nosp@m.edia..nosp@m.de

Member Function Documentation

◆ get()

Wikibase\View\DummyLocalizedTextProvider::get ( $key,
array $params = [] )
Parameters
string$key
string[]$paramsParameters that could be used for generating the text
Returns
string The $key, followed by a colon and comma separated $params, all in brackets.

Implements Wikibase\View\LocalizedTextProvider.

◆ getEscaped()

Wikibase\View\DummyLocalizedTextProvider::getEscaped ( $key,
array $params = [] )
Parameters
string$key
array<string|RawMessageParameter>$params Parameters that could be used for generating the text
Returns
string The HTML-escaped localized text

Implements Wikibase\View\LocalizedTextProvider.

◆ getLanguageOf()

Wikibase\View\DummyLocalizedTextProvider::getLanguageOf ( $key)
Parameters
string$key
Returns
string Always "qqx".

Implements Wikibase\View\LocalizedTextProvider.

◆ has()

Wikibase\View\DummyLocalizedTextProvider::has ( $key)
Parameters
string$key
Returns
bool Always true.

Implements Wikibase\View\LocalizedTextProvider.


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