-
Notifications
You must be signed in to change notification settings - Fork 1
PHP RequestHelper
Andrew Male edited this page Jul 27, 2015
·
3 revisions
The RequestHelper class is available to pull information from the typical input methods for PHP requests, excepting CLI invocations. The class also provides access to certain environment information and can tell if a request was JSON-based.
Automatically generated documentation for RequestHelper is available here:
http://n2framework.com/phpDoc/v2.0.1/classes/N2f.RequestHelper.html
The following types are currently available for the GetInput() method:
-
RequestType::POST- Returns$_POSTas a ParameterHelper -
RequestType::GET- Returns$_GETas a ParameterHelper - Default/No-Argument - Returns
$_REQUESTas a ParameterHelper
The following environment variables can be requested from the GetEnv() method:
-
EnvironmentInfo::COOKIE- Returns$_COOKIEas a ParameterHelper -
EnvironmentInfo::ENV- Returns$_ENVas a ParameterHelper -
EnvironmentInfo::FILES- Returns$_FILESas a ParameterHelper -
EnvironmentInfo::SERVERand Default/No-Argument - Returns$_SERVERas a ParameterHelper