XmlRpc/Generator/XmlWriter.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_XmlRpc  
Subpackage
Generator  
Version
$Id: XmlWriter.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_XmlRpc_Generator_XmlWriter

Package: Default
XML generator adapter based on XMLWriter
Parent(s)
\Zend_XmlRpc_Generator_GeneratorAbstract

Properties

>VPropertyprotectedstring $_encoding
inherited
XML encoding string
Inherited from: \Zend_XmlRpc_Generator_GeneratorAbstract::$$_encoding
>VPropertyprotected\XMLWriter $_xmlWriter
XMLWriter instance
Details
Type
\XMLWriter

Methods

methodpublic__construct(string $encoding = 'UTF-8') : void
inherited

Construct new instance of the generator

Inherited from: \Zend_XmlRpc_Generator_GeneratorAbstract::__construct()
Parameters
NameTypeDescription
$encodingstring

XML encoding, default UTF-8

methodpublic__toString() : string
inherited

Returns XML without document declaration

Inherited from: \Zend_XmlRpc_Generator_GeneratorAbstract::__toString()
Returns
TypeDescription
string
methodprotected_closeElement(string $name) : void

Close an previously opened XML element

Parameters
NameTypeDescription
$namestring
methodprotected_init() : void

Initialized XMLWriter instance

methodprotected_openElement(string $name) : void

Open a new XML element

Parameters
NameTypeDescription
$namestring

XML element name

methodprotected_writeTextData(string $text) : void

Write XML text data into the currently opened XML element

Parameters
NameTypeDescription
$textstring

XML text data

methodpubliccloseElement(string $name) : \Zend_XmlRpc_Generator_Abstract
inherited

End of an XML element

Inherited from: \Zend_XmlRpc_Generator_GeneratorAbstract::closeElement()

Method marks the end of an XML element

Parameters
NameTypeDescription
$namestring

XML tag name

Returns
TypeDescription
\Zend_XmlRpc_Generator_AbstractFluent interface
methodpublicflush() : string
inherited

Returns the XML as a string and flushes all internal buffers

Inherited from: \Zend_XmlRpc_Generator_GeneratorAbstract::flush()
Returns
TypeDescription
string
methodpublicgetEncoding() : string
inherited

Return encoding

Inherited from: \Zend_XmlRpc_Generator_GeneratorAbstract::getEncoding()
Returns
TypeDescription
string
methodpublicopenElement(string $name, string $value = null) : \Zend_XmlRpc_Generator_Abstract
inherited

Start XML element

Inherited from: \Zend_XmlRpc_Generator_GeneratorAbstract::openElement()

Method opens a new XML element with an element name and an optional value

Parameters
NameTypeDescription
$namestring

XML tag name

$valuestring

Optional value of the XML tag

Returns
TypeDescription
\Zend_XmlRpc_Generator_AbstractFluent interface
methodpublicsaveXml() : string

Return XML as a string

Returns
TypeDescription
string
methodpublicstripDeclaration(string $xml) : string
inherited

Removes XML declaration from a string

Inherited from: \Zend_XmlRpc_Generator_GeneratorAbstract::stripDeclaration()
Parameters
NameTypeDescription
$xmlstring
Returns
TypeDescription
string
Documentation was generated by phpDocumentor 2.0.0a12.