\Horde_Kolab_Storage_Data_Query_History_Base

The 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.

Summary

Methods
Properties
Constants
__construct()
setLogger()
synchronize()
No public properties found
No constants found
_completeSynchronization()
_updateLog()
$_data
$_history
$_logger
$_factory
N/A
No private methods found
No private properties found
N/A

Properties

$_history

$_history : \Horde_History

The history handler.

Type

\Horde_History

$_logger

$_logger : \Horde_Log_Logger

The logger

Type

\Horde_Log_Logger

Methods

__construct()

__construct(\Horde_Kolab_Storage_Data  $data, array  $params) 

Constructor.

Parameters

\Horde_Kolab_Storage_Data $data

The queriable data.

array $params

Additional parameters.

  • factory: (Horde_Kolab_Storage_Factory) The factory object.

setLogger()

setLogger(\Horde_Log_Logger  $logger = null) 

Set the logger

Parameters

\Horde_Log_Logger $logger

The logger instance.

synchronize()

synchronize(array  $params = array()) 

Synchronize any changes with the History driver.

Parameters

array $params

Additional parameters:

  • changes: (array) An array of arrays keyed by backend id containing information about each change. If not present, triggers a full history sync.
  • is_reset: (boolean) If true, indicates that UIDVALIDITY changed.

_completeSynchronization()

_completeSynchronization(string  $prefix, boolean  $is_reset) 

Perform a complete synchronization.

Also marks stale history entries as 'deleted'.

Parameters

string $prefix

Horde_History prefix

boolean $is_reset

Flag to indicate if the UIDVALIDITY changed

_updateLog()

_updateLog(string  $object, string  $bid, boolean  $force = false) 

Update the history log for an object.

Parameters

string $object

The object ID.

string $bid

The backend ID of the object.

boolean $force

Force update