From 9d0e61768acc8eb6adfd032cdc6fbeac4c024598 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon Date: Sat, 2 Apr 2011 12:43:55 +0100 Subject: Added is_cli_request() method to documentation for Input class. --- user_guide/libraries/input.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'user_guide/libraries') diff --git a/user_guide/libraries/input.html b/user_guide/libraries/input.html index d7e898bd1..b34938b13 100644 --- a/user_guide/libraries/input.html +++ b/user_guide/libraries/input.html @@ -269,7 +269,11 @@ else

$this->input->is_ajax_request()

Checks to see if the HTTP_X_REQUESTED_WITH server header has been set, and returns a boolean response.

-$this->input->is_ajax_request() + +

$this->input->is_cli_request()

+

Checks to see if the STDIN constant is set, which is a failsafe way to see if PHP is being run on the command line.

+ +$this->input->is_cli_request() -- cgit v1.2.3-24-g4f1b