PHP 클래스 Horde_SyncMl_ContentHandler, horde

저자: Karsten Fourmont ([email protected])
저자: Anthony Mills ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$debug

보호된 프로퍼티들

프로퍼티 타입 설명
$_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