__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
string
The index key
mixed
The default value
string
array
forge(\Fuel\Core\Request $new, \Fuel\Core\Input_Instance $input) : \Fuel\Core\Input_Instance
\Fuel\Core\$new
Request New request instance this input instance is tied to
\Fuel\Core\$active
Input_Instance Currently active input instance
headers(mixed $index, mixed $default) : array
mixed
mixed
array
ip(string $default) : array | string
string
array
string
is_ajax() : bool
bool
protocol() : string
string
query_string(string $default) : string
string
string
real_ip(string $default, bool $exclude_reserved) : string
Even if they are using a proxy.
string
the default to return on failure
bool
exclude private and reserved IPs
string
the real ip address of the userreferrer(string $default) : string
string
string
server(string $index, mixed $default) : string | array
string
The index key
mixed
The default value
string
array
user_agent($default) : string
string
$instance