XmlRpc/Generator/GeneratorAbstract.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-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_XmlRpc
- Subpackage
- Generator
- Version
- $Id$
\Zend_XmlRpc_Generator_GeneratorAbstract
Package: Zend_XmlRpc
Returns
Returns
Abstract XML generator adapter
Properties
Methods
__construct(string $encoding = 'UTF-8') : void
Construct new instance of the generator
Parameters
Name | Type | Description |
---|---|---|
$encoding | string | XML encoding, default UTF-8 |
_openElement(string $name) : void
abstract
Start XML element
Parameters
Name | Type | Description |
---|---|---|
$name | string | XML element name |
_writeTextData(string $text) : void
abstract
Write XML text data into the currently opened XML element
Parameters
Name | Type | Description |
---|---|---|
$text | string |
closeElement(string $name) : \Zend_XmlRpc_Generator_Abstract
End of an XML element
Method marks the end of an XML element
ParametersName | Type | Description |
---|---|---|
$name | string | XML tag name |
Type | Description |
---|---|
\Zend_XmlRpc_Generator_Abstract | Fluent interface |
flush() : string
Returns the XML as a string and flushes all internal buffers
Returns
Type | Description |
---|---|
string |
openElement(string $name, string $value = null) : \Zend_XmlRpc_Generator_Abstract
Start XML element
Method opens a new XML element with an element name and an optional value
ParametersName | Type | Description |
---|---|---|
$name | string | XML tag name |
$value | string | Optional value of the XML tag |
Type | Description |
---|---|
\Zend_XmlRpc_Generator_Abstract | Fluent interface |