Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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:

Public Attributes

const FORMAT_NAME = 'monolingual-text'
 

Protected Member Functions

 stringParse ( $value)
 

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'

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