Property | Type | Description | |
---|---|---|---|
$debug |
Property | Type | Description | |
---|---|---|---|
$_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 |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
_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. |
protected _characters ( $parser, $chars ) |
protected _endElement ( $parser, $tag ) |
protected _splitURI ( $tag ) |
protected _startElement ( $parser, $tag, $attributes ) |
public characters ( $str ) |
public endElement ( $uri, $element ) |
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. |
public startElement ( $uri, $element, $attrs ) |
protected array $_Stack | ||
return | array |
protected Horde_SyncMl_Command $_currentCommand | ||
return | Horde_SyncMl_Command |
protected $_gotFinal |
protected string $_respURI | ||
return | string |