コード例 #1
0
ファイル: Log.php プロジェクト: horde/horde
 /**
  * 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()));
     }
 }
コード例 #2
0
ファイル: Count.php プロジェクト: horde/horde
 /**
  * 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']++;
     }
 }
コード例 #3
0
ファイル: Clean.php プロジェクト: raz0rsdge/horde
 /**
  * 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);
 }