ILIAS
eassessment Revision 61809
|
Public Member Functions | |
getNativeValue () | |
nativeValue property getter |
Static Public Member Functions | |
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. |
Protected Member Functions | |
setNativeValue ($value) | |
nativeValue setter |
Private Attributes | |
$_nativeValue = null |
|
static |
Decode an encoded value and build the applicable XML_RPC2_Value subclass.
SimpleXMLElement | The encoded XML-RPC value |
Definition at line 215 of file Value.php.
References createFromNative().
Referenced by XML_RPC2_Backend_Php_Value_Array\decode(), XML_RPC2_Backend_Php_Value_Struct\decode(), and XML_RPC2_Backend_Php_Response\decode().
|
static |
Choose a XML_RPC2_Value subclass appropriate for the given value and create it.
This method tries to find the most adequate XML-RPC datatype to hold a given PHP native type. Note that distinguishing some datatypes may be difficult:
Whenever native object automatic detection proves inaccurate, use XML_RPC2_Value::createFromNative providing a valid explicit type as second argument
the appropriate XML_RPC2_Value child class instead.
mixed | The native value |
string | The xml-rpc target encoding type, as per the xmlrpc spec (optional) |
XML_RPC2_InvalidTypeEncodeException | When the native value has a type that can't be translated to XML_RPC |
Reimplemented from XML_RPC2_Value.
Reimplemented in XML_RPC2_Backend_Php_Value_Scalar.
Definition at line 123 of file Value.php.
Referenced by createFromDecode(), XML_RPC2_Backend_Php_Response\encode(), XML_RPC2_Backend_Php_Value_Array\encode(), XML_RPC2_Backend_Php_Value_Struct\encode(), and XML_RPC2_Backend_Php_Request\encode().
XML_RPC2_Backend_Php_Value::getNativeValue | ( | ) |
nativeValue property getter
Definition at line 76 of file Value.php.
References $_nativeValue.
Referenced by XML_RPC2_Backend_Php_Value_Boolean\encode(), XML_RPC2_Backend_Php_Value_String\encode(), XML_RPC2_Backend_Php_Value_Array\encode(), XML_RPC2_Backend_Php_Value_Struct\encode(), XML_RPC2_Backend_Php_Value_Base64\encode(), XML_RPC2_Backend_Php_Value_Scalar\encode(), and XML_RPC2_Backend_Php_Value_Datetime\encode().
|
protected |
nativeValue setter
mixed | $value |
Reimplemented in XML_RPC2_Backend_Php_Value_Struct, and XML_RPC2_Backend_Php_Value_Array.
Definition at line 89 of file Value.php.
Referenced by XML_RPC2_Backend_Php_Value_String\__construct(), XML_RPC2_Backend_Php_Value_Integer\__construct(), XML_RPC2_Backend_Php_Value_Double\__construct(), XML_RPC2_Backend_Php_Value_Base64\__construct(), XML_RPC2_Backend_Php_Value_Datetime\__construct(), and XML_RPC2_Backend_Php_Value_Scalar\__construct().
|
private |
Definition at line 66 of file Value.php.
Referenced by getNativeValue().