API17:JRequest::getInt
From Joomla! Documentation
(Difference between revisions)
(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::getInt|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JRequest::getInt|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
<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 38: | ||
|- | |- | ||
|} | |} | ||
| − | + | * '''Returns''' | |
| − | + | * '''Defined''' on line 175 of libraries/joomla/environment/request.php | |
| − | + | * '''Referenced by''' | |
| − | libraries/joomla/environment/request.php | + | ** [[JModuleHelper::_load/11.1|JModuleHelper::_load]] |
| − | + | ** [[JHtmlTabs::_loadBehavior/11.1|JHtmlTabs::_loadBehavior]] | |
| − | * [[JModuleHelper | + | ** [[JHtmlSliders::_loadBehavior/11.1|JHtmlSliders::_loadBehavior]] |
| − | * [[JHtmlTabs | + | ** [[JControllerForm::cancel/11.1|JControllerForm::cancel]] |
| − | * [[JHtmlSliders | + | ** [[JControllerForm::edit/11.1|JControllerForm::edit]] |
| − | * [[JControllerForm | + | ** [[JFormFieldRules::getInput/11.1|JFormFieldRules::getInput]] |
| − | * [[JControllerForm | + | ** [[JModelAdmin::populateState/11.1|JModelAdmin::populateState]] |
| − | * [[JFormFieldRules | + | ** [[JControllerForm::save/11.1|JControllerForm::save]] |
| − | * [[JModelAdmin | + | |
| − | * [[JControllerForm | + | |
===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> | ||
| − | + | ===User contributed notes=== | |
| − | + | ===Example=== | |
| − | + | <source lang="php"> | |
| − | === | + | $ourresult = JRequest::getInt( 'inputbox', 0, 'post' ); |
| + | </source> | ||
| + | |||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 63: | 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
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.
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' |
- 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
SeeAlso:JRequest::getInt [Edit See Also]
User contributed notes
Example
$ourresult = JRequest::getInt( 'inputbox', 0, 'post' );
<CodeExamplesForm />
