__callStatic()
cookie()
file()
forge()
headers()
instance()
ip()
is_ajax()
protocol()
query_string()
real_ip()
referrer()
server()
user_agent()
$instance
Input class
The input class allows you to access HTTP parameters, load server variables and user agent details.
| package | Fuel |
|---|---|
| category | Core |
| link | http://docs.fuelphp.com/classes/input.html |
__callStatic($method, $arguments)
file(string $index, mixed $default) : string | array
stringThe index key
mixedThe default value
stringarray
forge(\Fuel\Core\Request $new, \Fuel\Core\Input_Instance $input) : \Fuel\Core\Input_Instance
\Fuel\Core\$newRequest New request instance this input instance is tied to
\Fuel\Core\$activeInput_Instance Currently active input instance
headers(mixed $index, mixed $default) : array
mixed
mixed
arrayip(string $default) : array | string
string
arraystring
is_ajax() : bool
boolprotocol() : string
stringquery_string(string $default) : string
string
stringreal_ip(string $default, bool $exclude_reserved) : string
Even if they are using a proxy.
stringthe default to return on failure
boolexclude private and reserved IPs
stringthe real ip address of the userreferrer(string $default) : string
string
stringserver(string $index, mixed $default) : string | array
stringThe index key
mixedThe default value
stringarray
user_agent($default) : string
string$instance