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.
  *
  * @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');
     }
     $srcAbsPath = PathHelper::normalizePath($srcAbsPath);
     $destAbsPath = PathHelper::normalizePath($destAbsPath, true);
     $this->transport->moveNodeImmediately($srcAbsPath, $destAbsPath, true);
     // should throw the right exceptions
     $this->rewriteItemPaths($srcAbsPath, $destAbsPath);
     // update local cache
 }