getId() 공개 메소드

Return the ID of this data handler.
public getId ( ) : string
리턴 string The ID.
예제 #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);
     }
 }
예제 #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;
     }
 }
예제 #3
0
파일: Log.php 프로젝트: horde/horde
 /**
  * Return the ID of this data handler.
  *
  * @return string The ID.
  */
 public function getId()
 {
     return $this->_data->getId();
 }