BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
DataValues\MonolingualTextValue Class Reference
Inheritance diagram for DataValues\MonolingualTextValue:
Collaboration diagram for DataValues\MonolingualTextValue:

Public Member Functions

 __construct ($languageCode, $text)
 
 serialize ()
 
 unserialize ($value)
 
 getSortKey ()
 
 getValue ()
 
 getText ()
 
 getLanguageCode ()
 
 getArrayValue ()
 
- Public Member Functions inherited from DataValues\DataValueObject
 getHash ()
 
 equals ($value)
 
 getCopy ()
 
 getArrayValue ()
 
 toArray ()
 

Static Public Member Functions

static getType ()
 
static newFromArray ($data)
 

Additional Inherited Members

- Static Protected Member Functions inherited from DataValues\DataValueObject
static requireArrayFields ($data, array $fields)
 

Detailed Description

Class representing a monolingual text value.

Since
0.1

GNU GPL v2+

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >

Constructor & Destructor Documentation

DataValues\MonolingualTextValue::__construct (   $languageCode,
  $text 
)
Since
0.1
Parameters
string$languageCode
string$text
Exceptions
IllegalValueException

Member Function Documentation

DataValues\MonolingualTextValue::getArrayValue ( )
See Also
DataValue::getArrayValue
Returns
string[]

Implements DataValues\DataValue.

DataValues\MonolingualTextValue::getLanguageCode ( )

Returns the language code.

Since
0.1
Returns
string
DataValues\MonolingualTextValue::getSortKey ( )
See Also
DataValue::getSortKey
Returns
string

Implements DataValues\DataValue.

DataValues\MonolingualTextValue::getText ( )

Returns the text.

Since
0.1
Returns
string
static DataValues\MonolingualTextValue::getType ( )
static
See Also
DataValue::getType
Returns
string

Implements DataValues\DataValue.

DataValues\MonolingualTextValue::getValue ( )
static DataValues\MonolingualTextValue::newFromArray (   $data)
static

Constructs a new instance of the DataValue from the provided data. This can round-trip with

See Also
getArrayValue
Since
0.1
Parameters
string[]$data
Returns
MonolingualTextValue
Exceptions
IllegalValueException
DataValues\MonolingualTextValue::serialize ( )
See Also
Serializable::serialize
Returns
string

Implements Serializable.

DataValues\MonolingualTextValue::unserialize (   $value)
See Also
Serializable::unserialize
Parameters
string$value

Implements Serializable.


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