/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['categoryID'])) { $this->categoryID = intval($_REQUEST['categoryID']); } // get option category $this->getOptionCategory(); }
/** * @see Page::readParameters() */ public function readParameters() { parent::readParameters(); if (isset($_REQUEST['fleetID'])) { $this->fleetID = LWUtil::checkInt($_REQUEST['fleetID']); } if (isset($_GET['doSearch'])) { try { $this->validate(); // no errors $this->save(); } catch (UserInputException $e) { $this->errorField = $e->getField(); $this->errorType = $e->getType(); } } }