PHP Class Horde_Xml_Wbxml_Encoder, horde

Copyright 2003-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Anthony Mills ([email protected])
Inheritance: extends Horde_Xml_Wbxml_ContentHandler
Mostra file Open project: horde/horde

Protected Properties

Property Type Description
$_currentURI
$_dtd
$_dtdManager Horde_Xml_Wbxml_DtdManager The DTD Manager.
$_hasWrittenHeader
$_output
$_parser resource The XML parser.
$_stringTable
$_strings
$_subParser
$_subParserStack
$_uriNums
$_uris

Public Methods

Method Description
Horde_Xml_Wbxml_Encoder ( ) Constructor.
changecodepage ( $uri )
characters ( $chars )
encode ( $xml ) 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().
endElement ( $uri, $name )
getOutput ( ) Getter for property output.
getOutputSize ( )
opaque ( $o )
startElement ( $uri, $name, $attributes = [] )
writeAttribute ( $name, $value, $cs )
writeAttributes ( $attrs, $cs )
writeCharset ( $charset )
writeDocumentPublicIdentifier ( $dpiString, &$strings )
writeHeader ( $uri ) This will write the correct headers.
writeNull ( $charset )
writeString ( $str, $cs )
writeStringTable ( $strings, $charset, $stringTable )
writeTag ( $name, $attrs, $hasContent, $cs )
writeVersionNumber ( $version )

Protected Methods

Method Description
_addNullByte ( &$bytes )
_characters ( $parser, $chars )
_endElement ( $parser, $tag )
_getBytes ( $string, $cs )
_splitURI ( $tag )
_startElement ( $parser, $tag, $attributes )

Method Details

Horde_Xml_Wbxml_Encoder() public method

Constructor.

_addNullByte() protected method

protected _addNullByte ( &$bytes )

_characters() protected method

protected _characters ( $parser, $chars )

_endElement() protected method

protected _endElement ( $parser, $tag )

_getBytes() protected method

protected _getBytes ( $string, $cs )

_splitURI() protected method

protected _splitURI ( $tag )

_startElement() protected method

protected _startElement ( $parser, $tag, $attributes )

changecodepage() public method

public changecodepage ( $uri )

characters() public method

public characters ( $chars )

encode() public method

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().
public encode ( $xml )

endElement() public method

public endElement ( $uri, $name )

getOutput() public method

Getter for property output.
public getOutput ( )

getOutputSize() public method

public getOutputSize ( )

opaque() public method

public opaque ( $o )

startElement() public method

public startElement ( $uri, $name, $attributes = [] )

writeAttribute() public method

public writeAttribute ( $name, $value, $cs )

writeAttributes() public method

public writeAttributes ( $attrs, $cs )

writeCharset() public method

public writeCharset ( $charset )

writeDocumentPublicIdentifier() public method

public writeDocumentPublicIdentifier ( $dpiString, &$strings )

writeHeader() public method

This will write the correct headers.
public writeHeader ( $uri )

writeNull() public method

public writeNull ( $charset )

writeString() public method

public writeString ( $str, $cs )

writeStringTable() public method

public writeStringTable ( $strings, $charset, $stringTable )

writeTag() public method

public writeTag ( $name, $attrs, $hasContent, $cs )

writeVersionNumber() public method

public writeVersionNumber ( $version )

Property Details

$_currentURI protected_oe property

protected $_currentURI

$_dtd protected_oe property

protected $_dtd

$_dtdManager protected_oe property

The DTD Manager.
protected Horde_Xml_Wbxml_DtdManager $_dtdManager
return Horde_Xml_Wbxml_DtdManager

$_hasWrittenHeader protected_oe property

protected $_hasWrittenHeader

$_output protected_oe property

protected $_output

$_parser protected_oe property

The XML parser.
protected resource $_parser
return resource

$_stringTable protected_oe property

protected $_stringTable

$_strings protected_oe property

protected $_strings

$_subParser protected_oe property

protected $_subParser

$_subParserStack protected_oe property

protected $_subParserStack

$_uriNums protected_oe property

protected $_uriNums

$_uris protected_oe property

protected $_uris