ILIAS
release_4-3 Revision
|
Public Member Functions | |
__construct ($nativeValue) | |
Constructor. | |
encode () | |
Encode the instance into XML, for transport. | |
Public Member Functions inherited from XML_RPC2_Backend_Php_Value | |
getNativeValue () | |
nativeValue property getter |
Static Public Member Functions | |
static | decode ($xml) |
Decode transport XML and set the instance value accordingly. | |
Static Public Member Functions inherited from XML_RPC2_Backend_Php_Value | |
static | createFromNative ($nativeValue, $explicitType=null) |
Choose a XML_RPC2_Value subclass appropriate for the given value and create it. | |
static | createFromDecode ($simpleXML) |
Decode an encoded value and build the applicable XML_RPC2_Value subclass. |
Static Private Member Functions | |
static | _iso8601ToTimestamp ($datetime) |
Convert a iso8601 datetime string into timestamp. | |
static | _timestampToIso8601 ($timestamp) |
Convert a timestamp into an iso8601 datetime. |
Additional Inherited Members | |
Protected Member Functions inherited from XML_RPC2_Backend_Php_Value | |
setNativeValue ($value) | |
nativeValue setter |
Definition at line 65 of file Datetime.php.
XML_RPC2_Backend_Php_Value_Datetime::__construct | ( | $nativeValue | ) |
Constructor.
Will build a new XML_RPC2_Backend_Php_Value_Datetime with the given value
The provided value can be an int, which will be interpreted as a Unix timestamp, or a string in iso8601 format, or a "stdclass native value"
mixed | $nativeValue | a timestamp, an iso8601 date or a "stdclass native value" |
Definition at line 79 of file Datetime.php.
References $timestamp, _iso8601ToTimestamp(), _timestampToIso8601(), and XML_RPC2_Backend_Php_Value\setNativeValue().
|
staticprivate |
Convert a iso8601 datetime string into timestamp.
string | $datetime | iso8601 datetime |
Definition at line 114 of file Datetime.php.
References $result.
Referenced by __construct(), and decode().
|
staticprivate |
Convert a timestamp into an iso8601 datetime.
int | $timestamp | timestamp |
Definition at line 152 of file Datetime.php.
References $timestamp.
Referenced by __construct().
|
static |
Decode transport XML and set the instance value accordingly.
mixed | The encoded XML-RPC value, |
Definition at line 165 of file Datetime.php.
References $result, and _iso8601ToTimestamp().
XML_RPC2_Backend_Php_Value_Datetime::encode | ( | ) |
Encode the instance into XML, for transport.
Definition at line 190 of file Datetime.php.
References XML_RPC2_Backend_Php_Value\getNativeValue().