From 096b282a473fa2b27c3bfe3061f54b5fd83c75e0 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 27 Apr 2014 15:14:13 -0400 Subject: Add a basic task search --- core/request.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/request.php') diff --git a/core/request.php b/core/request.php index b2c3e12e..f2fa4d9f 100644 --- a/core/request.php +++ b/core/request.php @@ -43,4 +43,9 @@ class Request return ''; } + + public function isPost() + { + return isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'POST'; + } } -- cgit v1.3.1