ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
XML_RPC2_Value Class Reference
+ Inheritance diagram for XML_RPC2_Value:
+ Collaboration diagram for XML_RPC2_Value:

Static Public Member Functions

static createFromNative ($value, $explicitType=null)
 Factory method that constructs the appropriate XML-RPC encoded type value. More...
 

Detailed Description

Definition at line 57 of file Value.php.

Member Function Documentation

◆ createFromNative()

static XML_RPC2_Value::createFromNative (   $value,
  $explicitType = null 
)
static

Factory method that constructs the appropriate XML-RPC encoded type value.

Parameters
mixedValue to be encode
string(optional) Explicit XML-RPC type as enumerated in the XML-RPC spec (defaults to automatically selected type)
Returns
mixed The encoded value

Reimplemented in XML_RPC2_Backend_Php_Value, and XML_RPC2_Backend_Php_Value_Scalar.

Definition at line 68 of file Value.php.

69 {
70 $xmlrpcTypes = array('int', 'boolean', 'string', 'double', 'datetime', 'base64', 'struct', 'array');
71 if (in_array($explicitType, $xmlrpcTypes)) {
72 return @call_user_func(array(XML_RPC2_Backend::getValueClassname(), 'createFromNative'), $value, $explicitType);
73 }
74 return $value;
75 }
static getValueClassname()
Include the relevant php files for the value class, and return the backend value class name.
Definition: Backend.php:185

References XML_RPC2_Backend\getValueClassname().

+ Here is the call graph for this function:

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