JRequest::getInt: Difference between revisions
From Joomla! Documentation
Layout updates |
m preparing for archive only |
||
| (6 intermediate revisions by 3 users not shown) | |||
| Line 4: | Line 4: | ||
Fetches and returns a given filtered variable. | Fetches and returns a given filtered variable. | ||
<source lang="php"> | <source lang="php"> | ||
public static | public static function getInt ( | ||
$name | |||
$default=0 | |||
$hash= 'default' | |||
) | |||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 35: | Line 36: | ||
|- | |- | ||
|} | |} | ||
=== | * '''Returns''' | ||
* '''Defined''' on line 175 of libraries/joomla/environment/request.php | |||
* '''Referenced by''' | |||
** [[API17:JModuleHelper::_load|JModuleHelper::_load]] | |||
** [[API17:JHtmlTabs::_loadBehavior|JHtmlTabs::_loadBehavior]] | |||
** [[API17:JHtmlSliders::_loadBehavior|JHtmlSliders::_loadBehavior]] | |||
** [[API17:JControllerForm::cancel|JControllerForm::cancel]] | |||
** [[API17:JControllerForm::edit|JControllerForm::edit]] | |||
** [[API17:JFormFieldRules::getInput|JFormFieldRules::getInput]] | |||
** [[API17:JModelAdmin::populateState|JModelAdmin::populateState]] | |||
** [[API17:JControllerForm::save|JControllerForm::save]] | |||
===See also=== | |||
* {{JVer|11.1}} '''JRequest::getInt source code''' on [[jplatform:environment/request.php#cl-167|BitBucket]] | |||
* {{JVer|11.1}} Class [[API17:JRequest|JRequest]] | |||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]] | |||
* [[API17:JRequest::getInt|Other versions of JRequest::getInt]] | |||
===User contributed notes=== | |||
===Example=== | |||
<source lang="php"> | |||
$ourresult = JRequest::getInt( 'inputbox', 0, 'post' ); | |||
</source> | |||
=== | === Code Examples === | ||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JRequest::getInt | category=JRequest::getInt | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category: | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 03:36, 25 March 2017
JRequest::getInt
Description
Fetches and returns a given filtered variable.
public static function getInt (
$name
$default=0
$hash= 'default'
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $name | |||
| $default | 0 | ||
| $hash | 'default' |
- Returns
- Defined on line 175 of libraries/joomla/environment/request.php
- Referenced by
See also
JRequest::getInt source code on BitBucket
Class JRequest
Subpackage Environment- Other versions of JRequest::getInt
User contributed notes
Example
$ourresult = JRequest::getInt( 'inputbox', 0, 'post' );
Code Examples