Difference between revisions of "JRequest::getBool"
From Joomla! Documentation
m (→Example: moving preparation) |
m (preparing for archive only) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
Fetches and returns a given filtered variable. | Fetches and returns a given filtered variable. | ||
− | + | ||
− | + | ||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
public static function getBool ( | public static function getBool ( | ||
Line 41: | Line 39: | ||
* '''Defined''' on line 213 of libraries/joomla/environment/request.php | * '''Defined''' on line 213 of libraries/joomla/environment/request.php | ||
* '''Referenced by''' | * '''Referenced by''' | ||
− | ** [[JModuleHelper::getModules | + | ** [[API17:JModuleHelper::getModules|JModuleHelper::getModules]] |
− | ** [[JModuleHelper::renderModule | + | ** [[API17:JModuleHelper::renderModule|JModuleHelper::renderModule]] |
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JRequest::getBool source code''' on [[jplatform:environment/request.php#cl-205|BitBucket]] | * {{JVer|11.1}} '''JRequest::getBool source code''' on [[jplatform:environment/request.php#cl-205|BitBucket]] | ||
− | * {{JVer|11.1}} Class [[JRequest | + | * {{JVer|11.1}} Class [[API17:JRequest|JRequest]] |
− | * {{JVer|11.1}} Subpackage [[Subpackage_Environment | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]] |
− | * [[JRequest::getBool|Other versions of JRequest::getBool]] | + | * [[API17:JRequest::getBool|Other versions of JRequest::getBool]] |
− | + | ||
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
===Example=== | ===Example=== | ||
Line 58: | Line 54: | ||
</source> | </source> | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JRequest::getBool | category=JRequest::getBool | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* |
Latest revision as of 22:35, 24 March 2017
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JRequest::getBool[edit]
Description[edit]
Fetches and returns a given filtered variable.
public static function getBool (
$name
$default=false
$hash= 'default'
)
Parameter | Type | Default | Description |
---|---|---|---|
$name | |||
$default | false | ||
$hash | 'default' |
- Returns
- Defined on line 213 of libraries/joomla/environment/request.php
- Referenced by
See also[edit]
- JRequest::getBool source code on BitBucket
- Class JRequest
- Subpackage Environment
- Other versions of JRequest::getBool
User contributed notes[edit]
Example[edit]
$ourresult = JRequest::getBool( 'inputcheckbox', false, 'post' );
Code Examples[edit]