getId() public method

Return the ID of this data handler.
public getId ( ) : string
return string The ID.
Ejemplo n.º 1
0
 /**
  * Synchronize the provided data in case the selected synchronization
  * strategy requires it.
  *
  * @param Horde_Kolab_Storage_Data $data The data to synchronize.
  */
 public function synchronizeData(Horde_Kolab_Storage_Data $data)
 {
     $data_id = $data->getId();
     if ($this->hasNotBeenSynchronizedYet($data_id) || $this->syncTimeHasElapsed($data_id)) {
         $data->synchronize();
         $_SESSION['kolab_storage']['synchronization']['data'][$data_id] = time() + $this->_interval + rand(0, $this->_random_offset);
     }
 }
Ejemplo n.º 2
0
 /**
  * Synchronize the provided data in case the selected synchronization
  * strategy requires it.
  *
  * @param Horde_Kolab_Storage_Data $data The data to synchronize.
  */
 public function synchronizeData(Horde_Kolab_Storage_Data $data)
 {
     $data_id = $data->getId();
     if (empty($_SESSION['kolab_storage']['synchronization']['data'][$data_id])) {
         $data->synchronize();
         $_SESSION['kolab_storage']['synchronization']['data'][$data_id] = true;
     }
 }
Ejemplo n.º 3
0
Archivo: Log.php Proyecto: horde/horde
 /**
  * Return the ID of this data handler.
  *
  * @return string The ID.
  */
 public function getId()
 {
     return $this->_data->getId();
 }