3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\XmlRpc\Value
;
12 class ArrayValue
extends AbstractCollection
15 * Set the value of an array native type
19 public function __construct($value)
21 $this->type
= self
::XMLRPC_TYPE_ARRAY
;
22 parent
::__construct($value);
27 * Generate the XML code that represent an array native MXL-RPC value
31 protected function _generateXml()
33 $generator = $this->getGenerator();
34 $generator->openElement('value')
35 ->openElement('array')
36 ->openElement('data');
38 if (is_array($this->value
)) {
39 foreach ($this->value
as $val) {
43 $generator->closeElement('data')
44 ->closeElement('array')
45 ->closeElement('value');