Property | Type | Description | |
---|---|---|---|
$authenticated | boolean | Whether this session has authenticated successfully. | |
$curSyncItem | Horde_SyncMl_SyncElement | Stored in state if one element is split into multiple message packets. | |
$delayedFinal | boolean | Flag that is set if the client sends a Final but we are not finished with the current package and thus can't final this package yet. | |
$deviceInfo | Horde_SyncMl_DeviceInfo | Device info provided by the SyncML DevInf data. | |
$maxMsgSize | integer | The maximum allowed message size in bytes. | |
$maxObjSize | integer | The maximum allowed object size in bytes. | |
$messageID | integer | Id of the current message. | |
$serverChanges | array | The list of all server changes being sent to the client as a reference for Status responses from the client. | |
$sessionID | string | This is not to confuse with the PHP session id, though it is part of the generated PHP session id. | |
$sourceURI | string | Can be used to identify the client and is part of the PHP session id. | |
$targetURI | string | This is normally the URL of the RPC server. However the client is free to send anything. | |
$uriDevInf | string | ||
$uriMeta | string | namespace uri. | |
$user | string | Username used to authenticate with the backend. | |
$version | integer | 0 for SyncML 1.0, 1 for SyncML 1.1, etc. | |
$wbxml | boolean | Whether WBXML encoding is used. |
Property | Type | Description | |
---|---|---|---|
$_deviceDriver | string | Name of the appropriate device driver. | |
$_syncs | array | Array of Horde_SyncMl_Sync objects. | |
$_uri | string |
Method | Description | |
---|---|---|
__construct ( $sourceURI, $user, $sessionID ) | Constructor. | |
getDevInfURI ( ) | Returns the DevInf URI based on the protocol version. | |
getDevice ( ) : Horde_SyncMl_Device | Returns a Horde_SyncMl_Device instance for the device used in this session. | |
getPendingSyncs ( ) : array | Returns all syncs which have pending elements left. | |
getProtocolName ( ) | Returns the protocol name based on the protocol version. | |
getSync ( string $target ) : Horde_SyncMl_Sync | ||
getSyncs ( ) : array | ||
getURI ( ) : string |
Returns the namespace URI for the |
|
getVerDTD ( ) |
Returns the |
|
handleFinal ( &$output, $debug = false ) | Propagates final tags here and then further to every sync. | |
hasPendingSyncs ( ) : boolean | Returns whether there are any pending elements that have not been sent to due to message size restrictions. These will be sent int the next message. | |
isAllSyncsComplete ( ) : boolean | Returns whether all syncs are in completed state or no syncs are present. | |
setSync ( string $target, Horde_SyncMl_Sync $sync ) | ||
setVersion ( integer $version ) | Sets the protocol version |
public getDevInfURI ( ) |
public getDevice ( ) : Horde_SyncMl_Device | ||
return | Horde_SyncMl_Device | A Horde_SyncMl_Device instance. |
public getPendingSyncs ( ) : array | ||
return | array | Array of TargetLocURIs which can be used as a key in getSync() calls. |
public getProtocolName ( ) |
public handleFinal ( &$output, $debug = false ) |
public hasPendingSyncs ( ) : boolean | ||
return | boolean | True if there are pending elements that have yet to be sent. |
public isAllSyncsComplete ( ) : boolean | ||
return | boolean | True if all syncs are in completed state. |
public setVersion ( integer $version ) | ||
$version | integer | The protocol version: 0 for SyncML 1.0, 1 for SyncML 1.1 etc. |
protected string $_deviceDriver | ||
return | string |
protected array $_syncs | ||
return | array |
public bool $authenticated | ||
return | boolean |
public Horde_SyncMl_SyncElement $curSyncItem | ||
return | Horde_SyncMl_SyncElement |
public bool $delayedFinal | ||
return | boolean |
public Horde_SyncMl_DeviceInfo $deviceInfo | ||
return | Horde_SyncMl_DeviceInfo |
public int $maxMsgSize | ||
return | integer |
public int $maxObjSize | ||
return | integer |
public array $serverChanges | ||
return | array |
public string $sessionID | ||
return | string |
public string $sourceURI | ||
return | string |
public string $targetURI | ||
return | string |
public string $user | ||
return | string |
public int $version | ||
return | integer |