Actions

API17

Difference between revisions of "JRequest::getVar"

From Joomla! Documentation

m (User contributed notes: added example)
m (moving preparation)
 
(2 intermediate revisions by one user not shown)
Line 53: Line 53:
 
* '''Defined''' on line 92 of libraries/joomla/environment/request.php
 
* '''Defined''' on line 92 of libraries/joomla/environment/request.php
 
* '''Referenced by'''
 
* '''Referenced by'''
** [[JSession::_start/11.1|JSession::_start]]
+
** [[API17:JSession::_start|JSession::_start]]
** [[JControllerAdmin::checkin/11.1|JControllerAdmin::checkin]]
+
** [[API17:JControllerAdmin::checkin|JControllerAdmin::checkin]]
** [[JControllerAdmin::delete/11.1|JControllerAdmin::delete]]
+
** [[API17:JControllerAdmin::delete|JControllerAdmin::delete]]
** [[JControllerForm::edit/11.1|JControllerForm::edit]]
+
** [[API17:JControllerForm::edit|JControllerForm::edit]]
** [[JController::getInstance/11.1|JController::getInstance]]
+
** [[API17:JController::getInstance|JController::getInstance]]
** [[JModelList::getUserStateFromRequest/11.1|JModelList::getUserStateFromRequest]]
+
** [[API17:JModelList::getUserStateFromRequest|JModelList::getUserStateFromRequest]]
** [[JCache::makeId/11.1|JCache::makeId]]
+
** [[API17:JCache::makeId|JCache::makeId]]
** [[JControllerAdmin::publish/11.1|JControllerAdmin::publish]]
+
** [[API17:JControllerAdmin::publish|JControllerAdmin::publish]]
** [[JControllerAdmin::reorder/11.1|JControllerAdmin::reorder]]
+
** [[API17:JControllerAdmin::reorder|JControllerAdmin::reorder]]
** [[JControllerForm::save/11.1|JControllerForm::save]]
+
** [[API17:JControllerForm::save|JControllerForm::save]]
** [[JControllerAdmin::saveorder/11.1|JControllerAdmin::saveorder]]
+
** [[API17:JControllerAdmin::saveorder|JControllerAdmin::saveorder]]
 
===See also===
 
===See also===
 
* {{JVer|11.1}} '''JRequest::getVar source code''' on [[jplatform:environment/request.php#cl-84|BitBucket]]
 
* {{JVer|11.1}} '''JRequest::getVar source code''' on [[jplatform:environment/request.php#cl-84|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::getVar|Other versions of JRequest::getVar]]
+
* [[API17:JRequest::getVar|Other versions of JRequest::getVar]]
 
{{SeeAlso:JRequest::getVar}}
 
{{SeeAlso:JRequest::getVar}}
 
<span class="editsection" style="font-size:76%;">
 
<span class="editsection" style="font-size:76%;">
Line 90: Line 90:
 
format= ,,,
 
format= ,,,
 
</dpl>
 
</dpl>
<noinclude>[[Category:JRequest]][[Category:JRequest::getVar]]</noinclude>
+
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 21:24, 11 May 2013

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::getVar

Description

Fetches and returns a given variable.

Description:JRequest::getVar [Edit Descripton]

public static function getVar (
        $name
        $default=null
        $hash= 'default'
        $type= 'none'
        $mask=0
)
Parameter Type Default Description
$name
$default null
$hash 'default'
$type 'none'
$mask 0

See also

SeeAlso:JRequest::getVar [Edit See Also]

User contributed notes

Example

//Retrieve file details from uploaded file, sent from upload form
$file = JRequest::getVar('upload_file', null, 'files', 'array');

<CodeExamplesForm />