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