Actions

API17

Difference between revisions of "JRequest::getBool"

From Joomla! Documentation

(Bulk upload by Doxiki2)
 
m (User contributed notes: added example)
(2 intermediate revisions by one user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JRequest::getBool|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JRequest::getBool|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JRequest::getBool ($name, $default=false, $hash= 'default')
+
public static function getBool (
 +
        $name
 +
        $default=false
 +
        $hash= 'default'
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 35: Line 38:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns'''
 
+
* '''Defined''' on line 213 of libraries/joomla/environment/request.php
===Defined in===
+
* '''Referenced by'''
libraries/joomla/environment/request.php
+
** [[JModuleHelper::getModules/11.1|JModuleHelper::getModules]]
===Referenced by===
+
** [[JModuleHelper::renderModule/11.1|JModuleHelper::renderModule]]
* [[JModuleHelper/getModules/11.1|JModuleHelper::getModules]]
+
* [[JModuleHelper/renderModule/11.1|JModuleHelper::renderModule]]
+
 
===See also===
 
===See also===
 +
* {{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}} Subpackage [[Subpackage_Environment/11.1|Environment]]
 +
* [[JRequest::getBool|Other versions of JRequest::getBool]]
 +
{{SeeAlso:JRequest::getBool}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JRequest::getBool|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JRequest::getBool|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JRequest/11.1|JRequest]]
+
===User contributed notes===
* [[JRequest::getBool|Other versions of this method]]
+
===Example===
{{SeeAlso:JRequest::getBool}}
+
<source lang="php">
===Examples===
+
$ourresult  = JRequest::getBool( 'inputcheckbox',              false,                        'post' );
 +
</source>
 +
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 57: Line 65:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JRequest]][[Category:JRequest::getBool]]</noinclude>
 
<noinclude>[[Category:JRequest]][[Category:JRequest::getBool]]</noinclude>

Revision as of 02:25, 1 July 2012

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JRequest::getBool

Description

Fetches and returns a given filtered variable.

Description:JRequest::getBool [Edit Descripton]

public static function getBool (
        $name
        $default=false
        $hash= 'default'
)
Parameter Type Default Description
$name
$default false
$hash 'default'

See also

SeeAlso:JRequest::getBool [Edit See Also]

User contributed notes

Example

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

<CodeExamplesForm />