Exemplo n.º 1
0
 /**
  * Delete an object.
  *
  * @param string $guid The GUID of the object to be deleted.
  *
  * @return NULL
  *
  * @throws Horde_Kolab_Server_Exception
  */
 public function delete($guid)
 {
     $this->_server->delete($guid);
     if (in_array($guid, $this->_added)) {
         $this->_added = array_diff($this->_added, array($guid));
     }
 }
Exemplo n.º 2
0
Arquivo: Log.php Projeto: horde/horde
 /**
  * Delete an object.
  *
  * @param string $guid The GUID of the object to be deleted.
  *
  * @return NULL
  *
  * @throws Horde_Kolab_Server_Exception
  */
 public function delete($guid)
 {
     try {
         $this->_server->delete($guid);
         $this->_logger->debug(sprintf("The object \"%s\" has been successfully deleted!", $guid));
     } catch (Horde_Kolab_Server_Exception $e) {
         $this->_logger->warn(sprintf("Failed deleting object \"%s\"! Error: %s", $object->getGuid(), $e->getMessage()));
     }
 }
Exemplo n.º 3
0
 /**
  * Delete an object.
  *
  * @param string $guid The GUID of the object to be deleted.
  *
  * @return NULL
  *
  * @throws Horde_Kolab_Server_Exception
  */
 public function delete($guid)
 {
     $this->_server->delete($guid);
     if (!isset($this->_count['delete'])) {
         $this->_count['delete'] = 1;
     } else {
         $this->_count['delete']++;
     }
 }
Exemplo n.º 4
0
 /**
  * Delete an object.
  *
  * @param string $guid The GUID of the object to be deleted.
  *
  * @return NULL
  *
  * @throws Horde_Kolab_Server_Exception
  */
 public function delete($guid)
 {
     $this->_server->delete($guid);
 }