/** * Rename an object. * * @param string $guid The GUID of the object to be renamed. * @param string $new The new GUID of the object. * * @return NULL * * @throws Horde_Kolab_Server_Exception */ public function rename($guid, $new) { try { $this->_server->rename($guid, $new); $this->_logger->debug(sprintf("The object \"%s\" has been successfully renamed to \"%s\"!", $guid, $new)); } catch (Horde_Kolab_Server_Exception $e) { $this->_logger->warn(sprintf("Failed saving object \"%s\"! Error: %s", $object->getGuid(), $e->getMessage())); } }
/** * Rename an object. * * @param string $guid The GUID of the object to be renamed. * @param string $new The new GUID of the object. * * @return NULL * * @throws Horde_Kolab_Server_Exception */ public function rename($guid, $new) { $this->_server->rename($guid, $new); if (!isset($this->_count['rename'])) { $this->_count['rename'] = 1; } else { $this->_count['rename']++; } }
/** * Rename an object. * * @param string $guid The GUID of the object to be renamed. * @param string $new The new GUID of the object. * * @return NULL * * @throws Horde_Kolab_Server_Exception */ public function rename($guid, $new) { $this->_server->rename($guid, $new); }