Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
SMW\DataValues\LanguageCodeValue Class Reference
Collaboration diagram for SMW\DataValues\LanguageCodeValue:
Collaboration graph
[legend]

Public Member Functions

 __construct ($typeid= '')
 
- Public Member Functions inherited from SMWStringValue
 getShortWikiText ($linker=null)
 
 getShortHTMLText ($linker=null)
 
 getLongWikiText ($linker=null)
 
 getLongHTMLText ($linker=null)
 
 getWikiValue ()
 
 getWikiValueByLengthOf ($length)
 
 getInfolinks ()
 

Public Attributes

const TYPE_ID = '__lcode'
 
- Public Attributes inherited from SMWStringValue
const TYPE_ID = '_txt'
 
const TYPE_LEGACY_ID = '_str'
 
const TYPE_COD_ID = '_cod'
 

Protected Member Functions

 parseUserValue ($userValue)
 
- Protected Member Functions inherited from SMWStringValue
 parseUserValue ($value)
 
 loadDataItem (DataItem $dataItem)
 
 getServiceLinkParams ()
 

Detailed Description

Handles a string value to adhere the BCP47 normative content declaration for a languge code tag

See also
https://en.wikipedia.org/wiki/IETF_language_tag

GNU GPL v2+

Since
2.4
Author
mwjames

Constructor & Destructor Documentation

SMW\DataValues\LanguageCodeValue::__construct (   $typeid = '')
Parameters
string$typeid

Member Function Documentation

SMW\DataValues\LanguageCodeValue::parseUserValue (   $userValue)
protected
See also
DataValue::parseUserValue
Parameters
string$value

Member Data Documentation

const SMW\DataValues\LanguageCodeValue::TYPE_ID = '__lcode'

DV identifier


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