JRequest::getCmd
Cmd (Word and Integer0 filter
Fetches and returns a given filtered variable. The cmd filter only allows the characters [A-Za-z0-9.-_]. This is currently only a proxy function for getVar(). See getVar() for more in-depth documentation on the parameters.
Signature
public function getCmd(string
$name,
[string
$default = '',
[string
$hash = 'default']] )
Parameters
-
$name
- Variable name
-
$default
- Default value if the variable does not exist
-
$hash
- Where the var should come from (POST, GET, FILES, COOKIE, METHOD)
Returns
- string
- Requested variable