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

Public Member Functions

 __construct ($value)
 
 serialize ()
 
 unserialize ($value)
 
 getSortKey ()
 
 getValue ()
 
 equals ($value)
 
- 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 value of unknown type. This is in essence a null-wrapper, useful for instance for null-parsers.

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\UnknownValue::__construct (   $value)
Parameters
mixed$value

Member Function Documentation

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

Implements Comparable.

DataValues\UnknownValue::getSortKey ( )
See Also
DataValue::getSortKey
Since
0.1
Returns
int Always 0 in this implementation.

Implements DataValues\DataValue.

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

Implements DataValues\DataValue.

DataValues\UnknownValue::getValue ( )

Returns the value.

See Also
DataValue::getValue
Since
0.1
Returns
mixed

Implements DataValues\DataValue.

static DataValues\UnknownValue::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
Returns
UnknownValue
DataValues\UnknownValue::serialize ( )
See Also
Serializable::serialize
Since
0.1
Returns
string

Implements Serializable.

DataValues\UnknownValue::unserialize (   $value)
See Also
Serializable::unserialize
Since
0.1
Parameters
string$value
Returns
StringValue

Implements Serializable.


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