JInputCookie
Extends \JInputJoomla! Input Cookie Class
This is an abstracted input class used to manage retrieving data from the application environment.
package |
Joomla.Platform |
---|---|
subpackage |
Application |
since |
11.1 |
Methods
__call
Magic method to get filtered input data.
__call(mixed $name, string $arguments) : boolean
since |
11.1 |
---|
Arguments
- $name
mixed
Name of the value to get.- $arguments
string
Default value to return if variable does not exist.
Response
boolean
The filtered boolean input value.
__construct
Constructor.
__construct(array $source = null, array $options = array())
since |
11.1 |
---|
Arguments
- $source
array
Source data (Optional, default is $_REQUEST)- $options
array
Array of configuration parameters (Optional)
__get
Magic method to get an input object
__get(mixed $name) : \JInput
since |
11.1 |
---|
Arguments
- $name
mixed
Name of the input object to retrieve.
Response
\JInput
The request input object
def
Define a value. The value will only be set if there's no value for the name or if it is null.
def(string $name, mixed $value) : void
since |
12.1 |
---|
Arguments
- $name
string
Name of the value to define.- $value
mixed
Value to assign to the input.
get
Gets a value from the input data.
get(string $name, mixed $default = null, string $filter = 'cmd') : mixed
since |
11.1 |
---|
Arguments
- $name
string
Name of the value to get.- $default
mixed
Default value to return if variable does not exist.- $filter
string
Filter to apply to the value.
Response
mixed
The filtered input value.
getAlnum
getAlnum(mixed $name, mixed $default) : string
Arguments
- $name
mixed
- $default
mixed
Response
string
getArray
Gets an array of values from the request.
getArray(array $vars, mixed $datasource = null) : mixed
since |
11.1 |
---|
Arguments
- $vars
array
Associative array of keys and filter types to apply.- $datasource
mixed
Array to retrieve data from, or null
Response
mixed
The filtered input data.
getBase64
getBase64(mixed $name, mixed $default) : string
Arguments
- $name
mixed
- $default
mixed
Response
string
getBool
getBool(mixed $name, mixed $default) : boolean
Get a boolean.
Arguments
- $name
mixed
- $default
mixed
Response
boolean
getCmd
getCmd(mixed $name, mixed $default) : string
Arguments
- $name
mixed
- $default
mixed
Response
string
getFloat
getFloat(mixed $name, mixed $default) : float
Get a floating-point number.
Arguments
- $name
mixed
- $default
mixed
Response
float
getHtml
getHtml(mixed $name, mixed $default) : string
Arguments
- $name
mixed
- $default
mixed
Response
string
getInt
getInt(mixed $name, mixed $default) : integer
Get a signed integer.
Arguments
- $name
mixed
- $default
mixed
Response
integer
getMethod
Gets the request method.
getMethod() : string
since |
11.1 |
---|
Response
string
The request method.
getPath
getPath(mixed $name, mixed $default) : string
Arguments
- $name
mixed
- $default
mixed
Response
string
getString
getString(mixed $name, mixed $default) : string
Arguments
- $name
mixed
- $default
mixed
Response
string
getUint
getUint(mixed $name, mixed $default) : integer
Get an unsigned integer.
Arguments
- $name
mixed
- $default
mixed
Response
integer
getUsername
getUsername(mixed $name, mixed $default) : string
Arguments
- $name
mixed
- $default
mixed
Response
string
getWord
getWord(mixed $name, mixed $default) : string
Arguments
- $name
mixed
- $default
mixed
Response
string
set
Sets a value
set(string $name, mixed $value) : void
since |
11.1 |
---|
Arguments
- $name
string
Name of the value to set.- $value
mixed
Value to assign to the input.
Properties
options
Options array for the JInput instance.
since |
11.1 |
---|
Type(s)
array
data
Input data.
since |
11.1 |
---|
Type(s)
array
inputs
Input objects
since |
11.1 |
---|
Type(s)
array