XmlRpc/Generator/DomDocument.php
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 [email protected] 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: DomDocument.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_XmlRpc_Generator_DomDocument
DOMDocument based implementation of a XML/RPC generator
- Parent(s)
- \Zend_XmlRpc_Generator_GeneratorAbstract
Properties

string $_encoding =
- Type
- string
- Inherited_from
- \Zend_XmlRpc_Generator_GeneratorAbstract::$$_encoding
Methods

__construct(string $encoding = 'UTF-8') : voidConstruct new instance of the generator
Inherited from: \Zend_XmlRpc_Generator_GeneratorAbstract::__construct()| Name | Type | Description |
|---|---|---|
| $encoding | string | XML encoding, default UTF-8 |

__toString() : stringReturns XML without document declaration
Inherited from: \Zend_XmlRpc_Generator_GeneratorAbstract::__toString()| Type | Description |
|---|---|
| string |

_closeElement(string $name) : voidClose an previously opened XML element
Resets $_currentElement to the next parent node in the hierarchy
| Name | Type | Description |
|---|---|---|
| $name | string |

_writeTextData(string $text) : voidWrite XML text data into the currently opened XML element
| Name | Type | Description |
|---|---|---|
| $text | string |

closeElement(string $name) : \Zend_XmlRpc_Generator_AbstractEnd of an XML element
Inherited from: \Zend_XmlRpc_Generator_GeneratorAbstract::closeElement()Method marks the end of an XML element
| Name | Type | Description |
|---|---|---|
| $name | string | XML tag name |
| Type | Description |
|---|---|
| \Zend_XmlRpc_Generator_Abstract | Fluent interface |

flush() : stringReturns the XML as a string and flushes all internal buffers
Inherited from: \Zend_XmlRpc_Generator_GeneratorAbstract::flush()| Type | Description |
|---|---|
| string |

openElement(string $name, string $value = null) : \Zend_XmlRpc_Generator_Abstract
Method opens a new XML element with an element name and an optional value
| Name | Type | Description |
|---|---|---|
| $name | string | XML tag name |
| $value | string | Optional value of the XML tag |
| Type | Description |
|---|---|
| \Zend_XmlRpc_Generator_Abstract | Fluent interface |

stripDeclaration(string $xml) : stringRemoves XML declaration from a string
Inherited from: \Zend_XmlRpc_Generator_GeneratorAbstract::stripDeclaration()| Name | Type | Description |
|---|---|---|
| $xml | string |
| Type | Description |
|---|---|
| string |