Breadcrumbs
Environment
Environment
JRequest
Escrito por Administrator- Detalhes
-
Categoria: Environment
-
Última atualização: 19 Outubro 2009
-
Criado: 09 Junho 2009
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:
Output:
JRequest::setVar( 'getBoolexample', TRUE );
if (JRequest::getBool( 'getBoolexample')) {
echo 'Is true! Is working!';
} else {
echo 'Is not true that is working';
};
?>
getCmd (string $name, [string $default = ''], [string $hash = 'default'])
Examples
Code:
Output:
JRequest::setVar( 'getCmdexample', 'ABC abc 0123 - _ , . ; / \' \ ! %@ $ % & ' );
echo 'The magic Cmd is ' . JRequest::getCmd( 'getCmdexample' );
?>
getFloat (string $name, [string $default = 0.0], [string $hash = 'default'])
Examples
Code:
Output:
JRequest::setVar( 'getFloatexample', '3.1415926535897932384626433832795' );
echo 'The Pi number is ' . JRequest::getFloat( 'getFloatexample' );
?>
getInt (string $name, [string $default = 0], [string $hash = 'default'])
Examples
Code:
Output:
JRequest::setVar( 'getIntexample', '3.1415926535897932384626433832795' );
echo 'The Pi number is ' . JRequest::getInt( 'getFloatexample' );
?>
getString (string $name, [string $default = ''], [string $hash = 'default'], [int $mask = 0])
Examples
Code:
Output:To Do
getVar (string $name, [string $default = null], [string $hash = 'default'], [string $type = 'none'], [int $mask = 0])
Examples
Code:
Output:
getWord (string $name, [string $default = ''], [string $hash = 'default'])
Examples
Code:
Output:
JRequest::setVar( 'getWordexample', 'ABC abc 0123 - _ , . ; / \' \ ! %@ $ % & ' );
echo 'The magic word is ' . JRequest::getWord( 'getWordexample' );
?>
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:
Output:
JRequest::setVar( 'setvarexample', 'The setVar example is working :D' );
echo JRequest::getVar('setvarexample');
?>
_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
- Detalhes
-
Categoria: Environment
-
Última atualização: 09 Junho 2009
-
Criado: 09 Junho 2009