mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 08:47:52 +00:00
Removed old input method from Request class.
This commit is contained in:
@@ -125,13 +125,11 @@ class Request {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get request input or default value
|
* Get input class
|
||||||
* @param string $name
|
* @return Input
|
||||||
* @param string $defaultValue
|
|
||||||
* @return mixed
|
|
||||||
*/
|
*/
|
||||||
public function getInput($name, $defaultValue) {
|
public function getInput() {
|
||||||
return (isset($_REQUEST[$name]) ? $_REQUEST[$name] : $defaultValue);
|
return $this->input;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isFormatAccepted($format) {
|
public function isFormatAccepted($format) {
|
||||||
|
|||||||
Reference in New Issue
Block a user