We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
HubZero's documentation
Definition:
/** * Get var * * @param string $key Request key * @param mixed $default Default value * @param string $hash Where the var should come from (POST, GET, FILES, COOKIE, METHOD) * @param string $type Return type for the variable. [!] Deprecated. Joomla legacy support. * @param string $mask Filter mask for the variable. [!] Deprecated. Joomla legacy support. * @return integer Request variable */ public function getVar($key, $default = null, $hash = 'input', $type = 'none', $mask = 0)
Server (permalink)
$comment = Request::getVar('comment', array(), 'post', 'none', 2);
Client (permalink)
<input type="hidden" name="comment[id]" value="..." /> <input type="hidden" name="comment[parent]" value="..." />
$upload = Request::getVar('comment_file', '', 'files', 'array');
<input type="file" name="comment_file" ... />