Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/XmlRpc/Value/Array.php
Go to the documentation of this file.
00001 <?php
00027 require_once 'Zend/XmlRpc/Value/Collection.php';
00028 
00029 
00037 class Zend_XmlRpc_Value_Array extends Zend_XmlRpc_Value_Collection
00038 {
00044     public function __construct($value)
00045     {
00046         $this->_type = self::XMLRPC_TYPE_ARRAY;
00047         parent::__construct($value);
00048     }
00049 
00050 
00056     protected function _generateXml()
00057     {
00058         $generator = $this->getGenerator();
00059         $generator->openElement('value')
00060                   ->openElement('array')
00061                   ->openElement('data');
00062 
00063         if (is_array($this->_value)) {
00064             foreach ($this->_value as $val) {
00065                 $val->generateXml();
00066             }
00067         }
00068         $generator->closeElement('data')
00069                   ->closeElement('array')
00070                   ->closeElement('value');
00071     }
00072 }
00073 
 All Data Structures Namespaces Files Functions Variables Enumerations