Horde_Kolab_Storage_Data_Query_History_Cache
extends Horde_Kolab_Storage_Data_Query_History_Base
in package
The cache based hook that updates the Horde history information once data gets synchronized with the Kolab backend.
Copyright 2011-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Tags
Table of Contents
- $_data : Horde_Kolab_Storage_Data
- The queriable data.
- $_factory : Horde_Kolab_Storage_Factory
- The Kolab factory.
- $_history : Horde_History
- The history handler.
- $_logger : Horde_Log_Logger
- The logger
- __construct() : mixed
- Constructor.
- setLogger() : mixed
- Set the logger
- synchronize() : mixed
- Synchronize the preferences information with the information from the backend.
- _completeSynchronization() : mixed
- Perform a complete synchronization.
- _updateLog() : mixed
- Update the history log for an object.
Properties
$_data
The queriable data.
protected
Horde_Kolab_Storage_Data
$_data
$_factory
The Kolab factory.
protected
Horde_Kolab_Storage_Factory
$_factory
$_history
The history handler.
protected
Horde_History
$_history
$_logger
The logger
protected
Horde_Log_Logger
$_logger
Methods
__construct()
Constructor.
public
__construct(Horde_Kolab_Storage_Data $data, array<string|int, mixed> $params) : mixed
Parameters
- $data : Horde_Kolab_Storage_Data
-
The queriable data.
- $params : array<string|int, mixed>
-
Additional parameters.
- factory: (Horde_Kolab_Storage_Factory) The factory object.
Return values
mixed —setLogger()
Set the logger
public
setLogger([Horde_Log_Logger $logger = null ]) : mixed
Parameters
- $logger : Horde_Log_Logger = null
-
The logger instance.
Return values
mixed —synchronize()
Synchronize the preferences information with the information from the backend.
public
synchronize([array<string|int, mixed> $params = array() ]) : mixed
Parameters
- $params : array<string|int, mixed> = array()
-
Additional parameters:
- current_sync: (integer) Timestamp of the current sync.
- last_sync: (integer) Timestamp containing the time of last sync.
- changes: (array) An array of arrays keyed by backend id containing information about each change.
Return values
mixed —_completeSynchronization()
Perform a complete synchronization.
protected
_completeSynchronization(string $prefix, bool $is_reset) : mixed
Also marks stale history entries as 'deleted'.
Parameters
- $prefix : string
-
Horde_History prefix
- $is_reset : bool
-
Flag to indicate if the UIDVALIDITY changed
Return values
mixed —_updateLog()
Update the history log for an object.
protected
_updateLog(string $object, string $bid[, bool $force = false ]) : mixed
Parameters
- $object : string
-
The object ID.
- $bid : string
-
The backend ID of the object.
- $force : bool = false
-
Force update