Пример #1
0
 /**
  *
  */
 public function deletefolderAction()
 {
     $r = $this->getRequest();
     if (isset($r->id) && preg_match('/^[0-9]{1,30}$/', $r->id)) {
         $folderDb = new Filfolders();
         $this->view->filfoldersid = $folderDb->delete(" id = '" . $r->id . "' AND safinstances_id = '" . $this->safinstancesId . "' ");
     }
 }
Пример #2
0
 /**
  *
  * @return void
  */
 public function deleteAction()
 {
     $id = (int) $this->_request->getParam('id');
     if ($id > 0) {
         $fileFolders = new Filfolders();
         $where = 'id = ' . $id;
         $fileFolders->delete($where);
     }
     $this->redirect('/adminfiles/filfolders/index');
 }