Documentation

Horde_Xml_Wbxml_Encoder extends Horde_Xml_Wbxml_ContentHandler
in package

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

Copyright 2003-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Tags
author

Anthony Mills amills@pyramid6.com

Table of Contents

$_charset  : mixed
Charset.
$_currentUri  : mixed
$_currentURI  : mixed
$_dtd  : mixed
$_dtdManager  : Horde_Xml_Wbxml_DtdManager
The DTD Manager.
$_hasWrittenHeader  : mixed
$_opaqueHandler  : mixed
$_output  : mixed
$_parser  : resource
The XML parser.
$_strings  : mixed
$_stringTable  : mixed
$_subParser  : mixed
$_subParserStack  : mixed
$_uriNums  : mixed
$_uris  : mixed
$_wbxmlVersion  : mixed
WBXML Version.
__construct()  : mixed
Constructor.
changecodepage()  : mixed
characters()  : mixed
createSubHandler()  : mixed
encode()  : mixed
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()  : mixed
getCharsetStr()  : mixed
getOutput()  : mixed
Getter for property output.
getOutputSize()  : mixed
getVersion()  : mixed
opaque()  : mixed
removeOpaqueHandler()  : mixed
setCharset()  : mixed
setOpaqueHandler()  : mixed
setVersion()  : mixed
startElement()  : mixed
writeAttribute()  : mixed
writeAttributes()  : mixed
writeCharset()  : mixed
writeDocumentPublicIdentifier()  : mixed
writeHeader()  : mixed
This will write the correct headers.
writeNull()  : mixed
writeString()  : mixed
writeStringTable()  : mixed
writeTag()  : mixed
writeVersionNumber()  : mixed
_addNullByte()  : mixed
_characters()  : mixed
_endElement()  : mixed
_getBytes()  : mixed
_splitURI()  : mixed
_startElement()  : mixed

Properties

$_currentURI

protected mixed $_currentURI

$_hasWrittenHeader

protected mixed $_hasWrittenHeader = alse

$_output

protected mixed $_output = ''

$_parser

The XML parser.

protected resource $_parser

$_strings

protected mixed $_strings = array()

$_stringTable

protected mixed $_stringTable

$_subParser

protected mixed $_subParser = ull

$_subParserStack

protected mixed $_subParserStack = 0

$_uriNums

protected mixed $_uriNums = array()

$_uris

protected mixed $_uris = array()

$_wbxmlVersion

WBXML Version.

protected mixed $_wbxmlVersion = 2

1, 2, or 3 supported

Methods

__construct()

Constructor.

public __construct() : mixed
Return values
mixed

changecodepage()

public changecodepage(mixed $uri) : mixed
Parameters
$uri : mixed
Return values
mixed

characters()

public characters(mixed $chars) : mixed
Parameters
$chars : mixed
Return values
mixed

createSubHandler()

public createSubHandler() : mixed
Return values
mixed

encode()

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(mixed $xml) : mixed
Parameters
$xml : mixed
Tags
throws
Horde_Xml_Wbxml_Exception
Return values
mixed

endElement()

public endElement(mixed $uri, mixed $name) : mixed
Parameters
$uri : mixed
$name : mixed
Return values
mixed

getCharsetStr()

public getCharsetStr() : mixed
Return values
mixed

getOutput()

Getter for property output.

public getOutput() : mixed
Return values
mixed

getOutputSize()

public getOutputSize() : mixed
Return values
mixed

getVersion()

public getVersion() : mixed
Return values
mixed

opaque()

public opaque(mixed $o) : mixed
Parameters
$o : mixed
Return values
mixed

removeOpaqueHandler()

public removeOpaqueHandler() : mixed
Return values
mixed

setCharset()

public setCharset(mixed $cs) : mixed
Parameters
$cs : mixed
Return values
mixed

setOpaqueHandler()

public setOpaqueHandler(mixed $opaqueHandler) : mixed
Parameters
$opaqueHandler : mixed
Return values
mixed

setVersion()

public setVersion(mixed $v) : mixed
Parameters
$v : mixed
Return values
mixed

startElement()

public startElement(mixed $uri, mixed $name[, mixed $attributes = array() ]) : mixed
Parameters
$uri : mixed
$name : mixed
$attributes : mixed = array()
Tags
throws
Horde_Xml_Wbxml_Exception
Return values
mixed

writeAttribute()

public writeAttribute(mixed $name, mixed $value, mixed $cs) : mixed
Parameters
$name : mixed
$value : mixed
$cs : mixed
Tags
throws
Horde_Xml_Wbxml_Exception
Return values
mixed

writeAttributes()

public writeAttributes(mixed $attrs, mixed $cs) : mixed
Parameters
$attrs : mixed
$cs : mixed
Return values
mixed

writeDocumentPublicIdentifier()

public writeDocumentPublicIdentifier(mixed $dpiString, mixed &$strings) : mixed
Parameters
$dpiString : mixed
$strings : mixed
Return values
mixed

writeHeader()

This will write the correct headers.

public writeHeader(mixed $uri) : mixed
Parameters
$uri : mixed
Tags
throws
Horde_Xml_Wbxml_Exception
Return values
mixed

writeNull()

public writeNull(mixed $charset) : mixed
Parameters
$charset : mixed
Return values
mixed

writeString()

public writeString(mixed $str, mixed $cs) : mixed
Parameters
$str : mixed
$cs : mixed
Return values
mixed

writeStringTable()

public writeStringTable(mixed $strings, mixed $charset, mixed $stringTable) : mixed
Parameters
$strings : mixed
$charset : mixed
$stringTable : mixed
Return values
mixed

writeTag()

public writeTag(mixed $name, mixed $attrs, mixed $hasContent, mixed $cs) : mixed
Parameters
$name : mixed
$attrs : mixed
$hasContent : mixed
$cs : mixed
Tags
throws
Horde_Xml_Wbxml_Exception
Return values
mixed

writeVersionNumber()

public writeVersionNumber(mixed $version) : mixed
Parameters
$version : mixed
Return values
mixed

_addNullByte()

protected _addNullByte(mixed &$bytes) : mixed
Parameters
$bytes : mixed
Return values
mixed

_characters()

protected _characters(mixed $parser, mixed $chars) : mixed
Parameters
$parser : mixed
$chars : mixed
Return values
mixed

_endElement()

protected _endElement(mixed $parser, mixed $tag) : mixed
Parameters
$parser : mixed
$tag : mixed
Return values
mixed

_getBytes()

protected _getBytes(mixed $string, mixed $cs) : mixed
Parameters
$string : mixed
$cs : mixed
Return values
mixed

_splitURI()

protected _splitURI(mixed $tag) : mixed
Parameters
$tag : mixed
Return values
mixed

_startElement()

protected _startElement(mixed $parser, mixed $tag, mixed $attributes) : mixed
Parameters
$parser : mixed
$tag : mixed
$attributes : mixed
Return values
mixed

Search results