Moodle  2.2.1
http://www.collinsharper.com
Zend_XmlRpc_Generator_GeneratorAbstract Class Reference
Inheritance diagram for Zend_XmlRpc_Generator_GeneratorAbstract:

Public Member Functions

 __construct ($encoding= 'UTF-8')
 openElement ($name, $value=null)
 closeElement ($name)
 saveXml ()
 getEncoding ()
 flush ()
 __toString ()
 stripDeclaration ($xml)

Protected Member Functions

 _openElement ($name)
 _writeTextData ($text)
 _closeElement ($name)

Protected Attributes

 $_encoding

Detailed Description

Abstract XML generator adapter

Definition at line 26 of file GeneratorAbstract.php.


Constructor & Destructor Documentation

__construct ( encoding = 'UTF-8')

Construct new instance of the generator

Parameters:
string$encodingXML encoding, default UTF-8

Definition at line 40 of file GeneratorAbstract.php.


Member Function Documentation

Returns XML without document declaration

Returns:
string

Definition at line 114 of file GeneratorAbstract.php.

Here is the call graph for this function:

_closeElement ( name) [abstract, protected]

End XML element

Parameters:
string$name

Reimplemented in Zend_XmlRpc_Generator_XmlWriter, and Zend_XmlRpc_Generator_DomDocument.

Here is the caller graph for this function:

_openElement ( name) [abstract, protected]

Start XML element

Parameters:
string$nameXML element name

Reimplemented in Zend_XmlRpc_Generator_XmlWriter, and Zend_XmlRpc_Generator_DomDocument.

Here is the caller graph for this function:

_writeTextData ( text) [abstract, protected]

Write XML text data into the currently opened XML element

Parameters:
string$text

Reimplemented in Zend_XmlRpc_Generator_XmlWriter, and Zend_XmlRpc_Generator_DomDocument.

Here is the caller graph for this function:

closeElement ( name)

End of an XML element

Method marks the end of an XML element

Parameters:
string$nameXML tag name
Returns:
Zend_XmlRpc_Generator_Abstract Fluent interface

Definition at line 73 of file GeneratorAbstract.php.

Here is the call graph for this function:

flush ( )

Returns the XML as a string and flushes all internal buffers

Returns:
string

Definition at line 102 of file GeneratorAbstract.php.

Here is the call graph for this function:

Return encoding

Returns:
string

Definition at line 92 of file GeneratorAbstract.php.

openElement ( name,
value = null 
)

Start XML element

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

Parameters:
string$nameXML tag name
string$valueOptional value of the XML tag
Returns:
Zend_XmlRpc_Generator_Abstract Fluent interface

Definition at line 55 of file GeneratorAbstract.php.

Here is the call graph for this function:

saveXml ( ) [abstract]

Return XML as a string

Returns:
string

Reimplemented in Zend_XmlRpc_Generator_XmlWriter, and Zend_XmlRpc_Generator_DomDocument.

Here is the caller graph for this function:

stripDeclaration ( xml)

Removes XML declaration from a string

Parameters:
string$xml
Returns:
string

Definition at line 125 of file GeneratorAbstract.php.

Here is the caller graph for this function:


Field Documentation

$_encoding [protected]

Definition at line 33 of file GeneratorAbstract.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations