Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Parsers\MonolingualTextParser Class Reference

Parser for monolingual text strings. More...

+ Inheritance diagram for Wikibase\Repo\Parsers\MonolingualTextParser:
+ Collaboration diagram for Wikibase\Repo\Parsers\MonolingualTextParser:

Protected Member Functions

 stringParse ( $value)
 

Private Attributes

const FORMAT_NAME = 'monolingual-text'
 

Detailed Description

Parser for monolingual text strings.

Author
Daniel Kinzler
Thiemo Kreuz

Member Function Documentation

◆ stringParse()

Wikibase\Repo\Parsers\MonolingualTextParser::stringParse (   $value)
protected
See also
StringValueParser::stringParse
Note
Uses the "valuelang" option to set the language code in the MonolingualTextValue.
Parameters
string$value
Exceptions
ParseExceptionif the "valuelang" option is missing or empty
Returns
MonolingualTextValue

Member Data Documentation

◆ FORMAT_NAME

const Wikibase\Repo\Parsers\MonolingualTextParser::FORMAT_NAME = 'monolingual-text'
private

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