API17

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.  


{{subst:Description:JRequest::getBool}}
 


<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]]
{{subst:SeeAlso:JRequest::getBool}}
 


===User contributed notes===
===User contributed notes===
Line 54: Line 54:
</source>
</source>


<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JRequest::getBool
category=JRequest::getBool
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*

Latest revision as of 03:35, 25 March 2017

Joomla 11.1 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'

See also


User contributed notes

Example

$ourresult   = JRequest::getBool( 'inputcheckbox',              false,                        'post' );

Code Examples