Última atualização em Seg, 19 de Outubro de 2009 04:21
Ter, 09 de Junho de 2009 20:27

Defined in
/joomla/environment/request.php
Importing
-- /--
Method Summary
clean ()
Examples
Code:
Output:
To Do
get ([string $hash = 'default'], [int $mask = 0])
Examples
Code:
Output:
To Do
getBool (string $name, [string $default = false], [string $hash = 'default'])
Examples
Code:
JRequest::setVar( 'getBoolexample', TRUE );
if (JRequest::getBool( 'getBoolexample')) {
echo 'Is true!';
} else {
echo 'Is not true that is working';
};
Output:
Is true! Is working!
getCmd (string $name, [string $default = ''], [string $hash = 'default'])
Examples
Code:
JRequest::setVar( 'getCmdexample', 'ABC abc 0123 - _ , . ; / \' \ ! %@ $ % & ' );
echo 'The magic Cmd is ' . JRequest::getCmd( 'getCmdexample' );
Output:
The magic Cmd is ABCabc0123-_.
getFloat (string $name, [string $default = 0.0], [string $hash = 'default'])
Examples
Code:
JRequest::setVar( 'getFloatexample', '3.1415926535897932384626433832795' );
echo 'The Pi number is ' . JRequest::getFloat( 'getFloatexample' );
Output:
The Pi number is 3.1415926535898
getInt (string $name, [string $default = 0], [string $hash = 'default'])
Examples
Code:
JRequest::setVar( 'getIntexample', '3.1415926535897932384626433832795' );
echo 'The Pi number is ' . JRequest::getInt( 'getFloatexample' );
Output:
The Pi number is 3
getString (string $name, [string $default = ''], [string $hash = 'default'], [int $mask = 0])
Examples
Code:
Output:
To Do
Examples
Code:
<form name="getvarexample" method="post" action="#getVar">
<label>
Type your name <?php echo JRequest::getVar('getvarnameexample'); ?>:
<input name="getvarnameexample" type="text" value="<?php echo JRequest::getVar('getvarnameexample'); ?>" />
</label>
<label>
<input type="submit" name="button" value="Submit" />
</label>
</form>
Output:
getWord (string $name, [string $default = ''], [string $hash = 'default'])
Examples
Code:
JRequest::setVar( 'getWordexample', 'ABC abc 0123 - _ , . ; / \' \ ! %@ $ % & ' );
echo 'The magic word is ' . JRequest::getWord( 'getWordexample' );
Output:
The magic word is ABCabc_
checkToken ([string $method = 'post'])
Examples
Code:
Output:
To Do
getMethod ()
Examples
Code:
Output:
To Do
getURI ()
Examples
Code:
Output:
To Do
set (array $array, [string $hash = 'default'], [boolean $overwrite = true])
Examples
Code:
Output:
To Do
setVar (string $name, [string $value = null], [string $hash = 'method'], [boolean $overwrite = true])
Examples
Code:
JRequest::setVar( 'setvarexample', 'The setVar example is working :D' );
echo JRequest::getVar('setvarexample');
Output:
The setVar example is working :D
_cleanArray ( &$array, [boolean $globalise = false], array $array)
Examples
Code:
Output:
To Do
Method void _cleanVar (mixed $var, [int $mask = 0], [string $type = null])
Examples
Code:
Output:
To Do
_stripSlashesRecursive ( $value, array $array)
Examples
Code:
Output:
To Do
See also
JOOMLA API
JOOMLA DOCs
blog comments powered by