PHP Class 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.
Author: Thomas Jarosch ([email protected])
Author: Gunnar Wrobel ([email protected])
Inheritance: extends Horde_Kolab_Storage_Synchronization
Show file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
__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.

Private Methods

Method Description
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.

Method Details

__construct() public method

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() public method

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() public method

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.