Class XML_WBXML_Encoder

Description

From Binary XML Content Format Specification Version 1.3, 25 July 2001 found at http://www.wapforum.org

$Horde: framework/XML_WBXML/WBXML/Encoder.php,v 1.25.10.18 2009/01/06 15:23:50 jan Exp $

Copyright 2003-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Located in /XML_WBXML/WBXML/Encoder.php (line 21)

XML_WBXML_ContentHandler
   |
   --XML_WBXML_Encoder
Variable Summary
Method Summary
 XML_WBXML_Encoder XML_WBXML_Encoder ()
 void changecodepage ( $uri)
 void characters ( $chars)
 void encode ( $xml)
 void endElement ( $uri,  $name)
 void getOutput ()
 void getOutputSize ()
 void opaque ( $o)
 void startElement ( $uri,  $name, [ $attributes = array()])
 void writeAttribute ( $name,  $value,  $cs)
 void writeAttributes ( $attrs,  $cs)
 void writeCharset ( $charset)
 void writeDocumentPublicIdentifier ( $dpiString,  &$strings)
 void writeHeader ( $uri)
 void writeNull ( $charset)
 void writeString ( $str,  $cs)
 void writeStringTable ( $strings,  $charset,  $stringTable)
 void writeTag ( $name,  $attrs,  $hasContent,  $cs)
 void writeVersionNumber ( $version)
 void _addNullByte ( &$bytes)
 void _characters ( $parser,  $chars)
 void _endElement ( $parser,  $tag)
 void _getBytes ( $string,  $cs)
 void _splitURI ( $tag)
 void _startElement ( $parser,  $tag,  $attributes)
Variables
mixed $_currentURI (line 37)
mixed $_dtd (line 29)
XML_WBXML_DTDManager $_dtdManager (line 54)

The DTD Manager.

mixed $_hasWrittenHeader = false (line 27)
mixed $_output = '' (line 31)

Redefinition of:
XML_WBXML_ContentHandler::$_output
resource $_parser (line 47)

The XML parser.

mixed $_strings = array() (line 23)
mixed $_stringTable (line 25)
mixed $_subParser = null (line 39)
mixed $_subParserStack = 0 (line 40)
mixed $_uriNums = array() (line 35)
mixed $_uris = array() (line 33)

Inherited Variables

Inherited from XML_WBXML_ContentHandler

XML_WBXML_ContentHandler::$_charset
XML_WBXML_ContentHandler::$_currentUri
XML_WBXML_ContentHandler::$_opaqueHandler
XML_WBXML_ContentHandler::$_wbxmlVersion
Methods
Constructor XML_WBXML_Encoder (line 59)

Constructor.

XML_WBXML_Encoder XML_WBXML_Encoder ()
changecodepage (line 380)
void changecodepage ( $uri)
  • $uri
characters (line 253)
void characters ( $chars)
  • $chars

Redefinition of:
XML_WBXML_ContentHandler::characters()
encode (line 72)

Take the input $xml and turn it into WBXML. This is _not_ the

intended way of using this class. It is derived from Contenthandler and one should use it as a ContentHandler and produce the XML-structure with startElement(), endElement(), and characters().

void encode ( $xml)
  • $xml
endElement (line 354)
void endElement ( $uri,  $name)
  • $uri
  • $name

Redefinition of:
XML_WBXML_ContentHandler::endElement()
getOutput (line 410)

Getter for property output.

void getOutput ()

Redefinition of:
XML_WBXML_ContentHandler::getOutput()
getOutputSize (line 415)
void getOutputSize ()

Redefinition of:
XML_WBXML_ContentHandler::getOutputSize()
opaque (line 246)
void opaque ( $o)
  • $o

Redefinition of:
XML_WBXML_ContentHandler::opaque()
startElement (line 219)
void startElement ( $uri,  $name, [ $attributes = array()])
  • $uri
  • $name
  • $attributes

Redefinition of:
XML_WBXML_ContentHandler::startElement()
writeAttribute (line 329)
void writeAttribute ( $name,  $value,  $cs)
  • $name
  • $value
  • $cs
writeAttributes (line 320)
void writeAttributes ( $attrs,  $cs)
  • $attrs
  • $cs
writeCharset (line 153)
void writeCharset ( $charset)
  • $charset
writeDocumentPublicIdentifier (line 136)
void writeDocumentPublicIdentifier ( $dpiString,  &$strings)
  • $dpiString
  • &$strings
writeHeader (line 97)

This will write the correct headers.

void writeHeader ( $uri)
  • $uri
writeNull (line 187)
void writeNull ( $charset)
  • $charset
writeString (line 180)
void writeString ( $str,  $cs)
  • $str
  • $cs
writeStringTable (line 164)
void writeStringTable ( $strings,  $charset,  $stringTable)
  • $strings
  • $charset
  • $stringTable
writeTag (line 279)
void writeTag ( $name,  $attrs,  $hasContent,  $cs)
  • $name
  • $attrs
  • $hasContent
  • $cs
writeVersionNumber (line 131)
void writeVersionNumber ( $version)
  • $version
_addNullByte (line 193)
void _addNullByte ( &$bytes)
  • &$bytes
_characters (line 274)
void _characters ( $parser,  $chars)
  • $parser
  • $chars
_endElement (line 374)
void _endElement ( $parser,  $tag)
  • $parser
  • $tag
_getBytes (line 199)
void _getBytes ( $string,  $cs)
  • $string
  • $cs
_splitURI (line 211)
void _splitURI ( $tag)
  • $tag
_startElement (line 239)
void _startElement ( $parser,  $tag,  $attributes)
  • $parser
  • $tag
  • $attributes

Inherited Methods

Inherited From XML_WBXML_ContentHandler

 XML_WBXML_ContentHandler::XML_WBXML_ContentHandler()
 XML_WBXML_ContentHandler::characters()
 XML_WBXML_ContentHandler::createSubHandler()
 XML_WBXML_ContentHandler::endElement()
 XML_WBXML_ContentHandler::getCharsetStr()
 XML_WBXML_ContentHandler::getOutput()
 XML_WBXML_ContentHandler::getOutputSize()
 XML_WBXML_ContentHandler::getVersion()
 XML_WBXML_ContentHandler::opaque()
 XML_WBXML_ContentHandler::raiseError()
 XML_WBXML_ContentHandler::removeOpaqueHandler()
 XML_WBXML_ContentHandler::setCharset()
 XML_WBXML_ContentHandler::setOpaqueHandler()
 XML_WBXML_ContentHandler::setVersion()
 XML_WBXML_ContentHandler::startElement()

Documentation generated on Sun, 30 Jan 2011 05:17:07 +0000 by phpDocumentor 1.4.3