Свойство | Тип | Описание | |
---|---|---|---|
$charsetid | |||
$publicid | |||
$publicstringid | |||
$stringtable | |||
$version | integer | Store the wbxml version value. Used to verify we have a valid wbxml input stream. |
Свойство | Тип | Описание | |
---|---|---|---|
$_attrcp | |||
$_buffer | stream | Temporary string buffer | |
$_isWbxml | boolean | Flag to indicate we have a valid wbxml input stream | |
$_lastStartElement | array | Cache the last successfully fetched start tag array. Used to be able to easily detected emtpy nodes after the element was already fetched. | |
$_readHeader | |||
$_ungetbuffer |
Метод | Описание | |
---|---|---|
_ungetElement ( array $element ) : void | Unget the specified element from the stream. Places the element into the unget buffer. | |
getElement ( ) : array | boolean | Returns either start, content or end, and auto-concatenates successive content. | |
getElementContent ( ) : mixed | Get the element contents | |
getElementEndTag ( ) : array | boolean | Get the next tag, which is assumed to be an end tag. | |
getElementStartTag ( string $tag ) : array | boolean | Get the next tag, which is assumed to be a start tag. | |
getFullInputStream ( ) : resource | Return the full, raw, input stream. Used for things like SendMail request where we don't have wbxml to parse. The calling code is responsible for closing the stream. | |
getLastStartElement ( ) : array | boolean | Returns the last element array fetched using getElementStartTag() | |
getToken ( ) : array | Get the next [start | content | end] tag. | |
isEmptyElement ( array $el ) : boolean | Returns whether or not the passed in element array represents an empty tag. | |
isWbxml ( ) : boolean | Check that the input stream contains wbxml. Basically looks for a valid WBXML_VERSION header. self::readWbxmlHeader MUST have been called already. | |
peek ( ) : array | Peek at the next element in the stream. | |
readWbxmlHeader ( ) | Start reading the wbxml stream, pulling off the initial header and populate the properties. |
Метод | Описание | |
---|---|---|
_getAttributes ( ) : mixed | Get the element attributes | |
_getByte ( ) : string | Fetch a single byte from the stream. | |
_getMBUInt ( ) : integer | Get an MBU integer | |
_getMapping ( integer $cp, integer $id ) : mixed | Get a dtd mapping | |
_getOpaque ( integer $len ) : string | Get an opaque value from the stream of the specified length. | |
_getStringTable ( ) : string | Fetch the string table. Don't think we use the results anywhere though. | |
_getStringTableEntry ( integer $id ) : string | Really don't know for sure what this method is supposed to do, it is called from numerous places in this class, but the original zpush code did not contain this method. | |
_getTempStream ( ) : stream | Return the temporary buffer stream. | |
_getTermStr ( ) : string | Get a null terminated string from the stream. | |
_getToken ( ) : array | Get the next start tag, content or end tag | |
_logToken ( $el ) : void | Log the token. | |
_readVersion ( ) | Read the Wbxml version header byte, and buffer the input incase we need the full stream later. | |
_splitAttribute ( string $attr ) : array | Parses an attribute string |
protected _getAttributes ( ) : mixed | ||
Результат | mixed | The value of the element's attributes. |
protected _getMBUInt ( ) : integer | ||
Результат | integer |
protected _getOpaque ( integer $len ) : string | ||
$len | integer | The length of the data to fetch. |
Результат | string | A string of bytes representing the opaque value. |
protected _getStringTable ( ) : string | ||
Результат | string | The string table. |
protected _getStringTableEntry ( integer $id ) : string | ||
$id | integer | The entry to return?? |
Результат | string |
protected _getTempStream ( ) : stream | ||
Результат | stream |
protected _getTermStr ( ) : string | ||
Результат | string | The string |
protected _readVersion ( ) |
protected _splitAttribute ( string $attr ) : array | ||
$attr | string | The raw attribute value. |
Результат | array | The attribute hash |
public _ungetElement ( array $element ) : void | ||
$element | array | The element array to unget. |
Результат | void |
public getElement ( ) : array | boolean | ||
Результат | array | boolean | The element structure or false on failure. |
public getElementContent ( ) : mixed | ||
Результат | mixed | The content of the current element | false on failure. |
public getElementEndTag ( ) : array | boolean | ||
Результат | array | boolean | The element array | false on failure. |
public getFullInputStream ( ) : resource | ||
Результат | resource |
public getLastStartElement ( ) : array | boolean | ||
Результат | array | boolean | The element array, or false if none available. |
public isEmptyElement ( array $el ) : boolean | ||
$el | array | The element array. |
Результат | boolean | True if $el is an empty start tag, otherwise false. |
public readWbxmlHeader ( ) |
protected bool $_isWbxml | ||
Результат | boolean |
protected array $_lastStartElement | ||
Результат | array |
public int $version | ||
Результат | integer |