|
ILIAS
eassessment Revision 61809
|
Inheritance diagram for XML_RPC2_Backend_Php_Value_Datetime:
Collaboration diagram for XML_RPC2_Backend_Php_Value_Datetime: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().
Here is the call graph for this function:
|
staticprivate |
Convert a iso8601 datetime string into timestamp.
| string | $datetime | iso8601 datetime |
Definition at line 114 of file Datetime.php.
Referenced by __construct(), and decode().
Here is the caller graph for this function:
|
staticprivate |
Convert a timestamp into an iso8601 datetime.
| int | $timestamp | timestamp |
Definition at line 152 of file Datetime.php.
References $timestamp.
Referenced by __construct().
Here is the caller graph for this function:
|
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 _iso8601ToTimestamp().
Here is the call graph for this function:| 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().
Here is the call graph for this function: