extend request parameter handling

This commit is contained in:
coderkun 2013-09-22 21:48:56 +02:00
commit 8508390c27

View file

@ -129,7 +129,7 @@
/**
* Get all GET-parameters
* Get all 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.
*