PHP Class Horde_ActiveSync_Request_Ping, horde

Author: Michael J Rubinsky ([email protected])
Inheritance: extends Horde_ActiveSync_Request_Base
Datei anzeigen Open project: horde/horde

Protected Properties

Property Type Description
$_pingSettings array The device's PING configuration (obtained from state)

Protected Methods

Method Description
_checkHeartbeat ( integer $lifetime ) : integer Validate the configured/requested heartbeat Will set self::_statusCode appropriately in case of an invalid interval.
_handle ( ) : boolean Handle a PING command from the client. PING is sent periodically by the client to tell the server what folders we are interested in monitoring for changes. If no changes are detected by the server during the 'heartbeat' interval, the server sends back a status of self::STATUS_NOCHANGES to indicate heartbeat expired and the client should re-issue the PING command. If a change has been found, the client is sent a self::STATUS_NEEDSYNC and should issue a SYNC command.
_handleGlobalError ( ) Helper for sending error status results.

Method Details

_checkHeartbeat() protected method

Validate the configured/requested heartbeat Will set self::_statusCode appropriately in case of an invalid interval.
protected _checkHeartbeat ( integer $lifetime ) : integer
$lifetime integer The heartbeat to verify
return integer The valid heartbeat value to use.

_handle() protected method

Handle a PING command from the client. PING is sent periodically by the client to tell the server what folders we are interested in monitoring for changes. If no changes are detected by the server during the 'heartbeat' interval, the server sends back a status of self::STATUS_NOCHANGES to indicate heartbeat expired and the client should re-issue the PING command. If a change has been found, the client is sent a self::STATUS_NEEDSYNC and should issue a SYNC command.
protected _handle ( ) : boolean
return boolean

_handleGlobalError() protected method

Helper for sending error status results.
protected _handleGlobalError ( )

Property Details

$_pingSettings protected_oe property

The device's PING configuration (obtained from state)
protected array $_pingSettings
return array