PHP Класс Horde_Kolab_Storage_Synchronization_TimeBased, horde

Copyright 2012-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Thomas Jarosch ([email protected])
Автор: Gunnar Wrobel ([email protected])
Наследование: extends Horde_Kolab_Storage_Synchronization
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( integer $interval = 120, integer $random_offset = 90 ) Constructor.
synchronizeData ( Horde_Kolab_Storage_Data $data ) Synchronize the provided data in case the selected synchronization strategy requires it.
synchronizeList ( Horde_Kolab_Storage_List_Tools $list ) Synchronize the provided list in case the selected synchronization strategy requires it.

Приватные методы

Метод Описание
hasNotBeenSynchronizedYet ( string $data_id ) : boolean Check if the data store with the given data ID has been synchronized already during this session.
syncTimeHasElapsed ( string $data_id ) : boolean Check if the data store with the given data ID need to be resynchronized with the backend.

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

__construct() публичный Метод

Constructor.
public __construct ( integer $interval = 120, integer $random_offset = 90 )
$interval integer Kolab object cache resync interval with the IMAP server (in seconds).
$random_offset integer Random offset added to each folder sync interval.

synchronizeData() публичный Метод

Synchronize the provided data in case the selected synchronization strategy requires it.
public synchronizeData ( Horde_Kolab_Storage_Data $data )
$data Horde_Kolab_Storage_Data The data to synchronize.

synchronizeList() публичный Метод

Synchronize the provided list in case the selected synchronization strategy requires it.
public synchronizeList ( Horde_Kolab_Storage_List_Tools $list )
$list Horde_Kolab_Storage_List_Tools The list to synchronize.