Difference between revisions of "JRequest:: cleanVar"

From Joomla! Documentation

(Bulk upload by Doxiki2)
(Layout updates)
Line 38: Line 38:
===Defined in===
===Defined in===
libraries/joomla/environment/request.php (line 543)
* see source code in [[jplatform:environment/request.php#cl-543|BitBucket]]
===Referenced by===
===Referenced by===
* [[JModuleHelper/moduleCache/11.1|JModuleHelper::moduleCache]]
* [[JModuleHelper::moduleCache/11.1|JModuleHelper::moduleCache]]
===See also===
===See also===
<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">

Revision as of 21:08, 23 April 2011

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


Clean up an input variable.

Description:JRequest:: cleanVar [Edit Descripton]


public static JRequest::_cleanVar ($var, $mask=0, $type=null)
Parameter Type Default Description
$var mixed The input variable.
$mask int 0 Filter bit mask. 1=no trim: If this flag is cleared and the input is a string, the string will have leading and trailing whitespace trimmed. 2=allow_raw: If set, no more filtering is performed, higher bits are ignored. 4=allow_html: HTML is allowed, but passed through a safe HTML filter first. If set, no more filtering is performed. If no bits other than the 1 bit is set, a strict filter is applied.
$type string null The variable type {


Defined in

libraries/joomla/environment/request.php (line 543)

Referenced by

See also

[Edit See Also]

SeeAlso:JRequest:: cleanVar


<CodeExamplesForm />