PHP Class Horde_ActiveSync_Request_Ping, horde

Author: Michael J Rubinsky ([email protected])
Inheritance: extends Horde_ActiveSync_Request_Base
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_pingSettings array The device's PING configuration (obtained from state)

Méthodes protégées

Méthode 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 méthode

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
Résultat integer The valid heartbeat value to use.

_handle() protected méthode

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
Résultat boolean

_handleGlobalError() protected méthode

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
Résultat array