getId() public méthode

Return the ID of the underlying connection.
public getId ( ) : string
Résultat string The connection ID.
Exemple #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;
     }
 }
Exemple #2
0
 public function testGetId()
 {
     $driver = $this->_getDriver();
     $driver->expects($this->once())->method('getId')->will($this->returnValue('ID'));
     $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('ID', $tools->getId());
 }