ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
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.

Detailed Description

Definition at line 57 of file Value.php.

Member Function Documentation

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_Scalar, and XML_RPC2_Backend_Php_Value.

Definition at line 68 of file Value.php.

References XML_RPC2_Backend\getValueClassname().

{
$xmlrpcTypes = array('int', 'boolean', 'string', 'double', 'datetime', 'base64', 'struct', 'array');
if (in_array($explicitType, $xmlrpcTypes)) {
return @call_user_func(array(XML_RPC2_Backend::getValueClassname(), 'createFromNative'), $value, $explicitType);
}
return $value;
}

+ Here is the call graph for this function:


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