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: Gunnar Wrobel (wrobel@pardus.de)
Ejemplo n.º 1
0
 /**
  * Synchronize the provided list in case the selected synchronization
  * strategy requires it.
  *
  * @param Horde_Kolab_Storage_List $list The list to synchronize.
  */
 public function synchronizeList(Horde_Kolab_Storage_List_Tools $list)
 {
     $list_id = $list->getId();
     if (empty($_SESSION['kolab_storage']['synchronization']['list'][$list_id])) {
         $list->getListSynchronization()->synchronize();
         $_SESSION['kolab_storage']['synchronization']['list'][$list_id] = true;
     }
 }
Ejemplo n.º 2
0
 public function testGetNamespace()
 {
     $driver = $this->_getDriver();
     $driver->expects($this->once())->method('getNamespace')->will($this->returnValue('NAMESPACE'));
     $tools = new Horde_Kolab_Storage_List_Tools($driver, $this->getMock('Horde_Kolab_Storage_Cache', array(), array(), '', false, false), $this->getMock('Horde_Log_Logger'));
     $this->assertEquals('NAMESPACE', $tools->getNamespace());
 }