public function actionDelete()
 {
     $object = CDocumentsManager::getFile(CRequest::getInt("id"));
     $parent = $object->folder_id;
     $object->remove();
     $this->redirect("index.php?action=index&parent=" . $parent);
 }
 /**
  * @return CArrayList|null
  */
 private static function getCacheFiles()
 {
     if (is_null(self::$_cacheFiles)) {
         self::$_cacheFiles = new CArrayList();
     }
     return self::$_cacheFiles;
 }
 private function fillFoldersHierarchy(&$arr)
 {
     foreach (CDocumentsManager::getFoldersTopLevel()->getItems() as $folder) {
         $arr[$folder->getId()] = $folder->title;
         $this->fillSubfolders($folder, $arr, 1);
     }
 }
 public function actionDelete()
 {
     $object = CDocumentsManager::getFolder(CRequest::getInt("id"));
     $object->remove();
     $this->redirect("index.php?action=index");
 }