API17

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.  
  
{{Description:JRequest::getBool}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[Description:JRequest::getBool|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
 
<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/11.1|JModuleHelper::getModules]]
+
** [[API17:JModuleHelper::getModules|JModuleHelper::getModules]]
** [[JModuleHelper::renderModule/11.1|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/11.1|JRequest]]
+
* {{JVer|11.1}} Class [[API17:JRequest|JRequest]]
* {{JVer|11.1}} Subpackage [[Subpackage_Environment/11.1|Environment]]
+
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]]
* [[JRequest::getBool|Other versions of JRequest::getBool]]
+
* [[API17:JRequest::getBool|Other versions of JRequest::getBool]]
{{SeeAlso:JRequest::getBool}}
+
 
<span class="editsection" style="font-size:76%;">
+
 
<nowiki>[</nowiki>[[SeeAlso:JRequest::getBool|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
 
===User contributed notes===
 
===User contributed notes===
 
===Example===
 
===Example===
Line 58: 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 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.

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

See also[edit]


User contributed notes[edit]

Example[edit]

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

Code Examples[edit]