FOFPlatformJoomla::getUserStateFromRequest
This method will try retrieving a variable from the request (input) data.
Signature
public function getUserStateFromRequest(string
$key,
[string
$request = null,
[FOFInput
$input = null,
[mixed
$default = null,
[string
$type = 'none',
[boolean
$setUserState = true]]]]] )
Parameters
-
$key
- The user state key for the variable
-
$request
- The request variable name for the variable
-
$input
- The FOFInput object with the request (input) data
-
$default
- The default value. Default: null
-
$type
- The filter type for the variable data. Default: none (no filtering)
-
$setUserState
- Should I set the user state with the fetched value?
Returns
- mixed
- The value of the variable
Defined by Interface
FOFPlatformInterface
Parent Implementation