public function actionGetItem($id)
 {
     if ($id == 0) {
         return array("0" => "Корневая папка");
     }
     $folder = CDocumentsManager::getFolder($id);
     if (!is_null($folder)) {
         return array($folder->getId() => $folder->title);
     }
 }
 public function actionDelete()
 {
     $object = CDocumentsManager::getFolder(CRequest::getInt("id"));
     $object->remove();
     $this->redirect("index.php?action=index");
 }