Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/XmlRpc/Generator/XmlWriter.php
Go to the documentation of this file.
00001 <?php
00026 require_once 'Zend/XmlRpc/Generator/GeneratorAbstract.php';
00027 
00031 class Zend_XmlRpc_Generator_XmlWriter extends Zend_XmlRpc_Generator_GeneratorAbstract
00032 {
00038     protected $_xmlWriter;
00039 
00045     protected function _init()
00046     {
00047         $this->_xmlWriter = new XMLWriter();
00048         $this->_xmlWriter->openMemory();
00049         $this->_xmlWriter->startDocument('1.0', $this->_encoding);
00050     }
00051 
00052 
00059     protected function _openElement($name)
00060     {
00061         $this->_xmlWriter->startElement($name);
00062     }
00063 
00070     protected function _writeTextData($text)
00071     {
00072         $this->_xmlWriter->text($text);
00073     }
00074 
00081     protected function _closeElement($name)
00082     {
00083         $this->_xmlWriter->endElement();
00084 
00085         return $this;
00086     }
00087 
00088     public function saveXml()
00089     {
00090         return $this->_xmlWriter->flush(false);
00091     }
00092 }
 All Data Structures Namespaces Files Functions Variables Enumerations