getStamp() 공개 메소드

Report the status of this folder.
public getStamp ( Horde_Kolab_Storage_Folder_Stamp $previous = null ) : Horde_Kolab_Storage_Folder_Stamp
$previous Horde_Kolab_Storage_Folder_Stamp The previous stamp, if available.
리턴 Horde_Kolab_Storage_Folder_Stamp The stamp that can be used for detecting folder changes.
예제 #1
0
파일: Base.php 프로젝트: jubinpatel/horde
 /**
  * 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);
         }
     }
 }
예제 #2
0
파일: Log.php 프로젝트: horde/horde
 /**
  * Report the status of this folder.
  *
  * @param Horde_Kolab_Storage_Folder_Stamp $previous  The previous stamp,
  *                                                    if available.
  *
  * @return Horde_Kolab_Storage_Folder_Stamp The stamp that can be used for
  *                                          detecting folder changes.
  */
 public function getStamp(Horde_Kolab_Storage_Folder_Stamp $previous = null)
 {
     return $this->_data->getStamp($previous);
 }
예제 #3
0
파일: Log.php 프로젝트: jubinpatel/horde
 /**
  * Report the status of this folder.
  *
  * @return Horde_Kolab_Storage_Folder_Stamp The stamp that can be used for
  *                                          detecting folder changes.
  */
 public function getStamp()
 {
     return $this->_data->getStamp();
 }