Actions

API17

Difference between revisions of "JRequest::getInt"

From Joomla! Documentation

(Layout updates)
m (User contributed notes: added example)
(One intermediate revision by one user not shown)
Line 8: Line 8:
 
<nowiki>[</nowiki>[[Description:JRequest::getInt|Edit Descripton]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[Description:JRequest::getInt|Edit Descripton]]<nowiki>]</nowiki>
 
</span>
 
</span>
===Synopsis===
 
 
<source lang="php">
 
<source lang="php">
public static JRequest::getInt ($name, $default=0, $hash= 'default')
+
public static function getInt (
 +
        $name
 +
        $default=0
 +
        $hash= 'default'
 +
)
 
</source>
 
</source>
 
{| class="wikitable"
 
{| class="wikitable"
Line 35: Line 38:
 
|-
 
|-
 
|}
 
|}
===Returns===
+
* '''Returns'''
 
+
* '''Defined''' on line 175 of libraries/joomla/environment/request.php
===Defined in===
+
* '''Referenced by'''
libraries/joomla/environment/request.php (line 174)
+
** [[JModuleHelper::_load/11.1|JModuleHelper::_load]]
* see source code in [[jplatform:environment/request.php#cl-174|BitBucket]]
+
** [[JHtmlTabs::_loadBehavior/11.1|JHtmlTabs::_loadBehavior]]
===Referenced by===
+
** [[JHtmlSliders::_loadBehavior/11.1|JHtmlSliders::_loadBehavior]]
* [[JModuleHelper::_load/11.1|JModuleHelper::_load]]
+
** [[JControllerForm::cancel/11.1|JControllerForm::cancel]]
* [[JHtmlTabs::_loadBehavior/11.1|JHtmlTabs::_loadBehavior]]
+
** [[JControllerForm::edit/11.1|JControllerForm::edit]]
* [[JHtmlSliders::_loadBehavior/11.1|JHtmlSliders::_loadBehavior]]
+
** [[JFormFieldRules::getInput/11.1|JFormFieldRules::getInput]]
* [[JControllerForm::cancel/11.1|JControllerForm::cancel]]
+
** [[JModelAdmin::populateState/11.1|JModelAdmin::populateState]]
* [[JControllerForm::edit/11.1|JControllerForm::edit]]
+
** [[JControllerForm::save/11.1|JControllerForm::save]]
* [[JFormFieldRules::getInput/11.1|JFormFieldRules::getInput]]
+
* [[JModelAdmin::populateState/11.1|JModelAdmin::populateState]]
+
* [[JControllerForm::save/11.1|JControllerForm::save]]
+
 
===See also===
 
===See also===
 +
* {{JVer|11.1}} '''JRequest::getInt source code''' on [[jplatform:environment/request.php#cl-167|BitBucket]]
 +
* {{JVer|11.1}} Class [[JRequest/11.1|JRequest]]
 +
* {{JVer|11.1}} Subpackage [[Subpackage_Environment/11.1|Environment]]
 +
* [[JRequest::getInt|Other versions of JRequest::getInt]]
 +
{{SeeAlso:JRequest::getInt}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JRequest::getInt|Edit See Also]]<nowiki>]</nowiki>
 
<nowiki>[</nowiki>[[SeeAlso:JRequest::getInt|Edit See Also]]<nowiki>]</nowiki>
 
</span>
 
</span>
* [[JRequest/11.1|JRequest]]
+
===User contributed notes===
* [[JRequest::getInt|Other versions of this method]]
+
===Example===
{{SeeAlso:JRequest::getInt}}
+
<source lang="php">
===Examples===
+
$ourresult  = JRequest::getInt( 'inputbox',              0,                        'post' );
 +
</source>
 +
 
 
<CodeExamplesForm />
 
<CodeExamplesForm />
 
<dpl>
 
<dpl>
Line 64: Line 71:
 
category=MethodExample
 
category=MethodExample
 
include=*
 
include=*
 +
namespace=CodeExample
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
 
<noinclude>[[Category:JRequest]][[Category:JRequest::getInt]]</noinclude>
 
<noinclude>[[Category:JRequest]][[Category:JRequest::getInt]]</noinclude>

Revision as of 02:26, 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::getInt

Description

Fetches and returns a given filtered variable.

Description:JRequest::getInt [Edit Descripton]

public static function getInt (
        $name
        $default=0
        $hash= 'default'
)
Parameter Type Default Description
$name
$default 0
$hash 'default'

See also

SeeAlso:JRequest::getInt [Edit See Also]

User contributed notes

Example

$ourresult   = JRequest::getInt( 'inputbox',              0,                        'post' );

<CodeExamplesForm />