public function prepare() { if (self::$prepared) { throw new IllegalStateException("Input::prepare should be called only once per request."); } self::$prepared = true; if (FajrConfig::get('URL.Path')) { $_get = array_merge(FajrRouter::pathToParams(FajrUtils::pathInfo()), $_GET); } else { $_get = $_GET; } $_post = $_POST; // budeme pouzivat uz len Input unset($_GET); unset($_POST); $this->_get = $this->_prepare_array($_get, $this->allowed_get); $this->_post = $this->_prepare_array($_post, $this->allowed_post); $this->inputParameters = array_merge($this->_get, $this->_post); }