PHP Класс Horde_ActiveSync_Request_Ping, horde

Автор: Michael J Rubinsky ([email protected])
Наследование: extends Horde_ActiveSync_Request_Base
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_pingSettings array The device's PING configuration (obtained from state)

Защищенные методы

Метод Описание
_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.

Описание методов

_checkHeartbeat() защищенный Метод

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
Результат integer The valid heartbeat value to use.

_handle() защищенный Метод

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
Результат boolean

_handleGlobalError() защищенный Метод

Helper for sending error status results.
protected _handleGlobalError ( )

Описание свойств

$_pingSettings защищенное свойство

The device's PING configuration (obtained from state)
protected array $_pingSettings
Результат array