public function procede() { try { if ($this->oRequest->existParam('type')) { if (!$this->oRequest->existParam('id')) { throw new Error('Vous devez renseigner un identifiant de fiche.', 1173); } $oFiche = new Fiche($this->oRequest->getParam('id', 'string'), '', '', $this->oRequest->getParam('type', 'string')); $oFiche->removeSignaled(); Logger::log('admin', 'Les signalements de la fiche [' . $this->oRequest->getParam('type', 'string') . '] ' . $this->oRequest->getParam('id', 'string') . ' ont été supprimés par ' . $this->oCurrentUser->getLogin()); $this->oView->addAlert('Signalements supprimés.', 'success'); } } catch (Exception $ex) { $this->oView->addAlert($ex, 'danger'); } finally { $this->createView(); } }