|
static | createFromNative ($value, $explicitType=null) |
| Factory method that constructs the appropriate XML-RPC encoded type value. More...
|
|
Definition at line 57 of file Value.php.
◆ createFromNative()
static XML_RPC2_Value::createFromNative |
( |
|
$value, |
|
|
|
$explicitType = null |
|
) |
| |
|
static |
Factory method that constructs the appropriate XML-RPC encoded type value.
- Parameters
-
mixed | Value 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
Definition at line 68 of file Value.php.
References XML_RPC2_Backend\getValueClassname().
70 $xmlrpcTypes = array(
'int',
'boolean',
'string',
'double',
'datetime',
'base64',
'struct',
'array');
71 if (in_array($explicitType, $xmlrpcTypes)) {
static getValueClassname()
Include the relevant php files for the value class, and return the backend value class name...
The documentation for this class was generated from the following file: