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

Public Member Functions

 getHash ()
 
 equals ($value)
 
 getCopy ()
 
 getArrayValue ()
 
 toArray ()
 
- Public Member Functions inherited from DataValues\DataValue
 getSortKey ()
 
 getValue ()
 
- Public Member Functions inherited from Serializable
 serialize ()
 
 unserialize ($serialized)
 

Static Protected Member Functions

static requireArrayFields ($data, array $fields)
 

Additional Inherited Members

- Static Public Member Functions inherited from DataValues\DataValue
static getType ()
 

Detailed Description

Base for objects that represent a single data 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 >

Member Function Documentation

DataValues\DataValueObject::equals (   $value)
See Also
Comparable::equals
Since
0.1
Parameters
mixed$value
Returns
boolean

Implements Comparable.

DataValues\DataValueObject::getArrayValue ( )
See Also
DataValue::getArrayValue
Since
0.1
Returns
mixed

Implements DataValues\DataValue.

DataValues\DataValueObject::getCopy ( )
See Also
Copyable::getCopy
Since
0.1
Returns
DataValue

Implements Copyable.

DataValues\DataValueObject::getHash ( )
See Also
Hashable::getHash
Since
0.1
Returns
string

Implements Hashable.

static DataValues\DataValueObject::requireArrayFields (   $data,
array  $fields 
)
staticprotected

Checks that $data is an array and contains the given fields.

Parameters
mixed$data
array$fields
Todo:
: this should be removed once we got rid of all the static newFromArray() methods.
Exceptions
IllegalValueException
DataValues\DataValueObject::toArray ( )
See Also
DataValue::toArray
Since
0.1
Returns
array

Implements DataValues\DataValue.


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