X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/63d665071d77342d18da61162df02c151279086b..b4b57ea6a41c263250715f72248d48eae22f5476:/WEB-INF/lib/html/HttpRequest.class.php diff --git a/WEB-INF/lib/html/HttpRequest.class.php b/WEB-INF/lib/html/HttpRequest.class.php index 84081c71..cea61226 100644 --- a/WEB-INF/lib/html/HttpRequest.class.php +++ b/WEB-INF/lib/html/HttpRequest.class.php @@ -31,7 +31,12 @@ class ttHttpRequest { function getMethod() { return isset( $_SERVER['REQUEST_METHOD'] ) ? $_SERVER['REQUEST_METHOD'] : false; } - + + // The isPost function determines if a request method is POST. + function isPost() { + return ($this->getMethod() == 'POST'); + } + // The getParameter is the primary function of this class. It returns request parameter, // identified by $name. function getParameter($name = "", $default = null) {