/** * @see Action::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['participantID'])) { $this->participantID = intval($_REQUEST['participantID']); } $this->participant = new ContestParticipantEditor($this->participantID); if (!$this->participant->participantID) { throw new IllegalLinkException(); } if (!$this->participant->isDeletable()) { throw new PermissionDeniedException(); } }