API16:JRequest/getCmd
From Joomla! Documentation
Description
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().
Syntax
static getCmd($name, $default= '', $hash= 'default')
| Parameter Name | Default Value | Description |
|---|---|---|
| $name | $name Variable name | |
| $default | $default Default value if the variable does not exist | |
| $hash | 'default' | $hash Where the var should come from (POST, GET, FILES, COOKIE, METHOD) |
Returns
string Requested variable
Defined in
libraries/joomla/environment/request.php
Importing
jimport( 'joomla.environment.request' );
Source Body
public static function getCmd($name, $default = '', $hash = 'default')
{
return self::getVar($name, $default, $hash, 'cmd');
}
Examples
Code Examples