PHP Класс Horde_SyncMl_ContentHandler, horde

Автор: Karsten Fourmont ([email protected])
Автор: Anthony Mills ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$debug

Защищенные свойства (Protected)

Свойство Тип Описание
$_Stack array Stack for holding the xml elements during creation of the object from the xml event flow.
$_chars string
$_currentCommand Horde_SyncMl_Command Instance of Horde_SyncMl_Command. Events are passed through to this ContentHandler.
$_gotFinal Whether we received a final element in this message.
$_respURI string This is the endpoint URL of the RPC server.
$_wbxmlparser
$_xmlWriter

Открытые методы

Метод Описание
__construct ( )
characters ( $str ) Callback public function called by WBXML parser.
endElement ( $uri, $element ) Callback public function called by WBXML parser.
getOutput ( ) : string Returns the XML|WBXML output once processing is finished.
handleCommand ( &$cmd ) Processes one command after it has been completely parsed.
handleEnd ( ) Finishes the response.
handleHeader ( &$hdr ) Handles the header logic.
process ( string $request, string $contentType, string $respURI = null ) Here's were all the processing takes place: gets the SyncML request data and returns a SyncML response. The only thing that needs to be in place before invoking this public function is a working backend.
startElement ( $uri, $element, $attrs ) Callback public function called by WBXML parser.

Защищенные методы

Метод Описание
_characters ( $parser, $chars ) Callback public function called by XML parser.
_endElement ( $parser, $tag ) Callback public function called by XML parser.
_splitURI ( $tag ) Splits an URI as provided by the XML parser.
_startElement ( $parser, $tag, $attributes ) Callback public function called by XML parser.

Описание методов

__construct() публичный Метод

public __construct ( )

_characters() защищенный Метод

Callback public function called by XML parser.
protected _characters ( $parser, $chars )

_endElement() защищенный Метод

Callback public function called by XML parser.
protected _endElement ( $parser, $tag )

_splitURI() защищенный Метод

Splits an URI as provided by the XML parser.
protected _splitURI ( $tag )

_startElement() защищенный Метод

Callback public function called by XML parser.
protected _startElement ( $parser, $tag, $attributes )

characters() публичный Метод

Callback public function called by WBXML parser.
public characters ( $str )

endElement() публичный Метод

Callback public function called by WBXML parser.
public endElement ( $uri, $element )

getOutput() публичный Метод

Returns the XML|WBXML output once processing is finished.
public getOutput ( ) : string
Результат string The XML or WBXML output data.

handleCommand() публичный Метод

Invoked after a command is parsed.
public handleCommand ( &$cmd )

handleEnd() публичный Метод

Invoked after complete message is parsed.
public handleEnd ( )

handleHeader() публичный Метод

Invoked after header is parsed.
public handleHeader ( &$hdr )

process() публичный Метод

Here's were all the processing takes place: gets the SyncML request data and returns a SyncML response. The only thing that needs to be in place before invoking this public function is a working backend.
public process ( string $request, string $contentType, string $respURI = null )
$request string The raw request string.
$contentType string The MIME content type of the request. Should be either application/vnd.syncml or application/vnd.syncml+wbxml.
$respURI string The url of the server endpoint. Will be returned in the RespURI element.

startElement() публичный Метод

Callback public function called by WBXML parser.
public startElement ( $uri, $element, $attrs )

Описание свойств

$_Stack защищенное свойство

Stack for holding the xml elements during creation of the object from the xml event flow.
protected array $_Stack
Результат array

$_chars защищенное свойство

protected string $_chars
Результат string

$_currentCommand защищенное свойство

Instance of Horde_SyncMl_Command. Events are passed through to this ContentHandler.
protected Horde_SyncMl_Command $_currentCommand
Результат Horde_SyncMl_Command

$_gotFinal защищенное свойство

Whether we received a final element in this message.
protected $_gotFinal

$_respURI защищенное свойство

This is the endpoint URL of the RPC server.
protected string $_respURI
Результат string

$_wbxmlparser защищенное свойство

protected $_wbxmlparser

$_xmlWriter защищенное свойство

protected $_xmlWriter

$debug публичное свойство

public $debug