예제 #1
0
파일: Node.php 프로젝트: sebbie42/casebox
 /**
  * Renames the node
  *
  * @param string $name The new name
  * @return void
  */
 public function setName($name)
 {
     list($parentPath, ) = URLUtil::splitPath($this->path);
     list(, $newName) = URLUtil::splitPath($name);
     $newPath = $parentPath . '/' . $newName;
     Utils::renameObject($this->nodeId, $name);
     // rename($this->path,$newPath);
     $this->path = $newPath;
 }
예제 #2
0
파일: File.php 프로젝트: sebbie42/casebox
 public function setName($name)
 {
     Utils::renameObject($this->nodeId, $name);
 }