XmlRpc/Value.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_XmlRpc
- Subpackage
- Value
- Version
- $Id$
Package: Zend_XmlRpcRepresent a native XML-RPC value entity, used as parameters for the methods
called by the Zend_XmlRpc_Client object and as the return value for those calls.
This object as a very important static function Zend_XmlRpc_Value::getXmlRpcValue, this
function acts likes a factory for the Zend_XmlRpc_Value objects
Using this function, users/Zend_XmlRpc_Client object can create the Zend_XmlRpc_Value objects
from PHP variables, XML string or by specifing the exact XML-RPC natvie type
- Children
- \Zend_XmlRpc_Value_Collection
- \Zend_XmlRpc_Value_Scalar
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties
$_value
The native XML-RPC representation of this object's value
If the native type of this object is array or struct, this will be an array
of Zend_XmlRpc_Value objects
Details- Type
- n/a
Methods
_phpVarToNativeXmlRpc(mixed $value) : \Zend_XmlRpc_Value
staticTransform a PHP native variable into a XML-RPC native value
ParametersName | Type | Description |
---|
$value | mixed | The PHP variable for convertion |
---|
ReturnsDetails- Static
-
_xmlStringToNativeXmlRpc(string | \SimpleXMLElement $xml) : \Zend_XmlRpc_Value
staticTransform an XML string into a XML-RPC native value
ParametersName | Type | Description |
---|
$xml | string | \SimpleXMLElement | A SimpleXMLElement object represent the XML string
It can be also a valid XML string for convertion |
---|
ReturnsDetails- Static
-
getXmlRpcTypeByValue(mixed $value) : string
staticGet XML-RPC type for a PHP native variable
ParametersName | Type | Description |
---|
$value | mixed | |
---|
ReturnsDetails- Static
-
getXmlRpcValue(mixed $value, \Zend_XmlRpc_Value::constant $type = self::AUTO_DETECT_TYPE) : \Zend_XmlRpc_Value
staticCreates a Zend_XmlRpc_Value* object, representing a native XML-RPC value
A XmlRpcValue object can be created in 3 ways:
1. Autodetecting the native type out of a PHP variable
(if $type is not set or equal to Zend_XmlRpc_Value::AUTO_DETECT_TYPE)
2. By specifing the native type ($type is one of the Zend_XmlRpc_Value::XMLRPC_TYPE_* constants)
3. From a XML string ($type is set to Zend_XmlRpc_Value::XML_STRING)
By default the value type is autodetected according to it's PHP type
ParametersReturnsDetails- Static
-
setEncoding(string $encoding) : void
staticChanges the encoding of the generator
ParametersName | Type | Description |
---|
$encoding | string | |
---|