Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/XmlRpc/Value/Struct.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_Struct extends Zend_XmlRpc_Value_Collection
00038 {
00044     public function __construct($value)
00045     {
00046         $this->_type = self::XMLRPC_TYPE_STRUCT;
00047         parent::__construct($value);
00048     }
00049 
00050 
00056     protected function _generateXML()
00057     {
00058         $generator = $this->getGenerator();
00059         $generator->openElement('value')
00060                   ->openElement('struct');
00061 
00062         if (is_array($this->_value)) {
00063             foreach ($this->_value as $name => $val) {
00064                 /* @var $val Zend_XmlRpc_Value */
00065                 $generator->openElement('member')
00066                           ->openElement('name', $name)
00067                           ->closeElement('name');
00068                 $val->generateXml();
00069                 $generator->closeElement('member');
00070             }
00071         }
00072         $generator->closeElement('struct')
00073                   ->closeElement('value');
00074     }
00075 }
 All Data Structures Namespaces Files Functions Variables Enumerations