Example #1
0
 /**
  * Implement the workspace move method. It is dispatched to transport
  * immediately.
  *
  * @param string $srcAbsPath the path of the node to be moved.
  * @param string $destAbsPath the location to which the node at srcAbsPath
  *      is to be moved.
  *
  * @return void
  *
  * @throws RepositoryException If node cannot be found at given path
  *
  * @see Workspace::move()
  */
 public function moveNodeImmediately($srcAbsPath, $destAbsPath)
 {
     if (!$this->transport instanceof WritingInterface) {
         throw new UnsupportedRepositoryOperationException('Transport does not support writing');
     }
     $this->verifyAbsolutePath($srcAbsPath);
     $this->verifyAbsolutePath($destAbsPath);
     $this->transport->moveNode($srcAbsPath, $destAbsPath, true);
     // should throw the right exceptions
     $this->rewriteItemPaths($srcAbsPath, $destAbsPath);
     // update local cache
 }