extend request parameter handling
This commit is contained in:
parent
996a501f4f
commit
8508390c27
1 changed files with 23 additions and 1 deletions
|
|
@ -129,7 +129,7 @@
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all GET-parameters
|
* Get all GET-parameters.
|
||||||
*
|
*
|
||||||
* @return array GET-Parameters
|
* @return array GET-Parameters
|
||||||
*/
|
*/
|
||||||
|
|
@ -161,6 +161,28 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get all POST-parameters.
|
||||||
|
*
|
||||||
|
* @return array POST-parameters
|
||||||
|
*/
|
||||||
|
public function getPostParams()
|
||||||
|
{
|
||||||
|
return $this->postParams;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the method of the current request.
|
||||||
|
*
|
||||||
|
* @return string Current request method
|
||||||
|
*/
|
||||||
|
public function getRequestMethod()
|
||||||
|
{
|
||||||
|
return $_SERVER['REQUEST_METHOD'];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a URL-route.
|
* Add a URL-route.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue