/**
* Synchronize the preferences information with the information from the
* backend.
*
* @param array $params Additional parameters.
*
* @return NULL
*/
public function synchronize($params = array())
{
$stamp = $this->data->getStamp();
if (isset($params['changes'])) {
foreach ($params['changes'][Horde_Kolab_Storage_Folder_Stamp::ADDED] as $bid => $object) {
$this->_updateLog($object['uid'], $bid, $stamp);
}
foreach ($params['changes'][Horde_Kolab_Storage_Folder_Stamp::DELETED] as $bid => $object) {
$this->history->log($object, array('action' => 'delete', 'bid' => $bid, 'stamp' => $stamp));
}
} else {
foreach ($this->data->getObjectToBackend() as $object => $bid) {
$this->_updateLog($object, $bid, $stamp);
}
}
}