Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / XmlRpc / Value / ArrayValue.php
blob09e24d2135837863b5645b853bbc11a9ff627d29
1 <?php
2 /**
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
8 */
10 namespace Zend\XmlRpc\Value;
12 class ArrayValue extends AbstractCollection
14 /**
15 * Set the value of an array native type
17 * @param array $value
19 public function __construct($value)
21 $this->type = self::XMLRPC_TYPE_ARRAY;
22 parent::__construct($value);
26 /**
27 * Generate the XML code that represent an array native MXL-RPC value
29 * @return void
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) {
40 $val->generateXml();
43 $generator->closeElement('data')
44 ->closeElement('array')
45 ->closeElement('value');