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

Public Member Functions

 __construct (array $monolingualValues)
 
 serialize ()
 
 unserialize ($value)
 
 getSortKey ()
 
 getTexts ()
 
 getValue ()
 
- 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 multilingual 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\MultilingualTextValue::__construct ( array  $monolingualValues)
Since
0.1
Parameters
MonolingualTextValue[]$monolingualValues
Exceptions
IllegalValueException

Member Function Documentation

DataValues\MultilingualTextValue::getSortKey ( )
See Also
DataValue::getSortKey
Returns
string|float|int

Implements DataValues\DataValue.

DataValues\MultilingualTextValue::getTexts ( )

Returns the texts as an array of monolingual text values.

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

Implements DataValues\DataValue.

DataValues\MultilingualTextValue::getValue ( )

Returns the multilingual text value

See Also
DataValue::getValue
Returns
MultilingualTextValue

Implements DataValues\DataValue.

static DataValues\MultilingualTextValue::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
mixed$data
Exceptions
IllegalValueExceptionif $data is not an array.
Returns
MultilingualTextValue
DataValues\MultilingualTextValue::serialize ( )
See Also
Serializable::serialize
Returns
string

Implements Serializable.

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

Implements Serializable.


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