JRequest::getBool: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Fetches and returns a given filtered variable. | Fetches and returns a given filtered variable. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 46: | Line 46: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]] | ||
* [[API17:JRequest::getBool|Other versions of JRequest::getBool]] | * [[API17:JRequest::getBool|Other versions of JRequest::getBool]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
| Line 54: | 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 03:35, 25 March 2017
JRequest::getBool
Description
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
JRequest::getBool source code on BitBucket
Class JRequest
Subpackage Environment- Other versions of JRequest::getBool
User contributed notes
Example
$ourresult = JRequest::getBool( 'inputcheckbox', false, 'post' );
Code Examples