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/changelog.html | 2 ++
user_guide/libraries/input.html | 6 +++++-
2 files changed, 7 insertions(+), 1 deletion(-)
(limited to 'user_guide')
diff --git a/user_guide/changelog.html b/user_guide/changelog.html
index b1900301a..8335822b0 100644
--- a/user_guide/changelog.html
+++ b/user_guide/changelog.html
@@ -83,8 +83,10 @@ Hg Tag: n/a
Fixed a bug (Reactor #145) where the Output Library had parse_exec_vars set to protected.
Fixed a bug (Reactor #80) where is_really_writable would create an empty file when on Windows or with safe_mode enabled.
Fixed various bugs with User Guide.
+ Added is_cli_request() method to documentation for Input class.
Added form_validation_lang entries for decimal, less_than and greater_than.
Fixed issue #153 Escape Str Bug in MSSQL driver.
+ Fixed issue #172 Google Chrome 11 posts incorrectly when action is empty.
Version 2.0.1
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