factory = $factory; } public function getFilteredValue($input, $name) { return $input->getInt($name); } public function rawValueValid($value) { try { $this->factory->loadById((int) $value); } catch(ElementNotFoundException $e) { return false; } return true; } }