API Documentation

XmlRpc/Generator/GeneratorAbstract.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_XmlRpc
subpackage
Generator
version
$Id: Client.php 17752 2009-08-22 15:49:54Z lars $
Classes
Zend_XmlRpc_Generator_GeneratorAbstract

Description

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.

Zend_XmlRpc_Generator_GeneratorAbstract

Properties
$_encoding
Methods
__construct
openElement
closeElement
saveXml
getEncoding
flush
__toString
stripDeclaration
_openElement
_writeTextData
_closeElement

Description

Abstract XML generator adapter

Properties

$_encoding

string $_encoding = ''

XML encoding string

Details

$_encoding
string
visibility
protected
default
final
false
static
false

Methods

__construct

__construct( string $encoding = UTF-8 ) :

Construct new instance of the generator

Arguments
$encoding
string
XML encoding, default UTF-8
Details
visibility
public
final
false
static
false

__toString

__toString( ) : string

Returns XML without document declaration

Output
string
Details
visibility
public
final
false
static
false

_closeElement

_closeElement( string $name ) :

End XML element

Arguments
$name
string
Details
visibility
protected
final
false
static
false

_openElement

_openElement( string $name ) :

Start XML element

Arguments
$name
string
XML element name
Details
visibility
protected
final
false
static
false

_writeTextData

_writeTextData( string $text ) :

Write XML text data into the currently opened XML element

Arguments
$text
string
Details
visibility
protected
final
false
static
false

closeElement

closeElement( string $name ) : Zend_XmlRpc_Generator_Abstract

End of an XML element

Method marks the end of an XML element

Arguments
$name
string
XML tag name
Output
Zend_XmlRpc_Generator_Abstract
Fluent interface
Details
visibility
public
final
false
static
false

flush

flush( ) : string

Returns the XML as a string and flushes all internal buffers

Output
string
Details
visibility
public
final
false
static
false

getEncoding

getEncoding( ) : string

Return encoding

Output
string
Details
visibility
public
final
false
static
false

openElement

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

Arguments
$name
string
XML tag name
$value
string
Optional value of the XML tag
Output
Zend_XmlRpc_Generator_Abstract
Fluent interface
Details
visibility
public
final
false
static
false

saveXml

saveXml( ) : string

Return XML as a string

Output
string
Details
visibility
public
final
false
static
false

stripDeclaration

stripDeclaration( string $xml ) : string

Removes XML declaration from a string

Arguments
$xml
string
Output
string
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.