diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-04-02 13:43:55 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2011-04-02 13:43:55 +0200 |
commit | 9d0e61768acc8eb6adfd032cdc6fbeac4c024598 (patch) | |
tree | bdc742b40ee0441965f4e8c8f5cd73c79592e7d0 /user_guide/libraries/input.html | |
parent | 197416513977ae65230cc5bf443a165ba793f8ef (diff) |
Added is_cli_request() method to documentation for Input class.
Diffstat (limited to 'user_guide/libraries/input.html')
-rw-r--r-- | user_guide/libraries/input.html | 6 |
1 files changed, 5 insertions, 1 deletions
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<br /> <h2>$this->input->is_ajax_request()</h2> <p>Checks to see if the <var>HTTP_X_REQUESTED_WITH</var> server header has been set, and returns a boolean response.</p> -<code>$this->input->is_ajax_request()</code> + +<h2>$this->input->is_cli_request()</h2> +<p>Checks to see if the <var>STDIN</var> constant is set, which is a failsafe way to see if PHP is being run on the command line.</p> + +<code>$this->input->is_cli_request()</code> </div> |