fititnt Dev Site

 
fititnt Dev Site
O que realmente define facilidade de manutenção, segurança e eficiência de um código é a habilidade do programador
fititnt Dev Site
 
 
 

JRequest

Defined in

/joomla/environment/request.php

Importing

-- /--

Method Summary

clean ()

Examples

Code:

To do
Output:
To Do


get ([string $hash = 'default'], [int $mask = 0])

Examples

Code:

To do
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:


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:


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:


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:


getString (string $name, [string $default = ''], [string $hash = 'default'], [int $mask = 0])

Examples

Code:

To do
Output:
To Do


getVar (string $name, [string $default = null], [string $hash = 'default'], [string $type = 'none'], [int $mask = 0])

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:


checkToken ([string $method = 'post'])

Examples

Code:

To do
Output:
To Do


getMethod ()

Examples

Code:

To do
Output:
To Do


getURI ()

Examples

Code:

To do
Output:
To Do


set (array $array, [string $hash = 'default'], [boolean $overwrite = true])

Examples

Code:

To do
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:


_cleanArray ( &$array, [boolean $globalise = false], array $array)

Examples

Code:

To do
Output:
To Do


Method void _cleanVar (mixed $var, [int $mask = 0], [string $type = null])

Examples

Code:

To do
Output:
To Do


_stripSlashesRecursive ( $value, array $array)

Examples

Code:

To do
Output:
To Do


See also

JOOMLA API

JOOMLA DOCs


blog comments powered by Disqus
 
 
 
fititnt.org is not affiliated with or endorsed by the Joomla Project or Open Source Matters. The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries
HTML5 Valid CC 3.0 BY NC