コード例 #1
0
ファイル: File.php プロジェクト: sebbie42/casebox
 /**
  * Delete the current file
  *
  * @return void
  */
 public function delete()
 {
     // unlink($this->path);
     Utils::deleteObject($this->nodeId);
 }
コード例 #2
0
ファイル: Directory.php プロジェクト: sebbie42/casebox
 /**
  * Deletes all files in this directory, and then itself
  *
  * @return void
  */
 public function delete()
 {
     // don't delete folders when in 'edit' mode
     if ($this->env['mode'] == 'edit') {
         return;
     }
     Utils::deleteObject($this->nodeId);
 }