diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-03-09 13:35:06 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-03-09 13:35:06 +0100 |
commit | 56c879a870600b3e3ffce586c849d53e85f93674 (patch) | |
tree | 257ef7450d4f020d0db04e1481b59b89796434aa /system/core/Input.php | |
parent | d9170ad478690260f1b8dce17c82d4c7dc271902 (diff) | |
parent | c016a1102e2a77e0c27b9656c19a0460df24dfb6 (diff) |
Merge upstream branch
Diffstat (limited to 'system/core/Input.php')
-rwxr-xr-x | system/core/Input.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/system/core/Input.php b/system/core/Input.php index ee15f4013..5a4659a5a 100755 --- a/system/core/Input.php +++ b/system/core/Input.php @@ -699,6 +699,23 @@ class CI_Input { return (php_sapi_name() === 'cli' OR defined('STDIN')); } + // -------------------------------------------------------------------- + + /** + * Get Request Method + * + * Return the Request Method + * + * @param bool uppercase or lowercase + * @return bool + */ + public function method($upper = FALSE) + { + return ($upper) + ? strtoupper($this->server('REQUEST_METHOD')) + : strtolower($this->server('REQUEST_METHOD')); + } + } /* End of file Input.php */ |