JRequest:: cleanArray: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
Adds an array to the GLOBALS array and checks that the GLOBALS variable is not being attacked. | Adds an array to the GLOBALS array and checks that the GLOBALS variable is not being attacked. | ||
<source lang="php"> | <source lang="php"> | ||
public static | public static function _cleanArray ( | ||
&$array | |||
$globalise=false | |||
) | |||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 32: | Line 30: | ||
|- | |- | ||
|} | |} | ||
=== | * '''Returns''' | ||
* '''Defined''' on line 512 of libraries/joomla/environment/request.php | |||
* '''Since''' {{JVer|11.1 }} | |||
===See also=== | |||
* {{JVer|11.1}} '''JRequest::_cleanArray source code''' on [[jplatform:environment/request.php#cl-504|BitBucket]] | |||
* {{JVer|11.1}} Class [[API17:JRequest|JRequest]] | |||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Environment|Environment]] | |||
* [[API17:JRequest::_cleanArray|Other versions of JRequest::_cleanArray]] | |||
===User contributed notes=== | |||
=== | === Code Examples === | ||
=== | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JRequest::_cleanArray | category=JRequest::_cleanArray | ||
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:35, 25 March 2017
JRequest::_cleanArray
Description
Adds an array to the GLOBALS array and checks that the GLOBALS variable is not being attacked.
public static function _cleanArray (
&$array
$globalise=false
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| &$array | array | $array Array to clean. | |
| $globalise | boolean | false | True if the array is to be added to the GLOBALS. |
See also
JRequest::_cleanArray source code on BitBucket
Class JRequest
Subpackage Environment- Other versions of JRequest::_cleanArray
User contributed notes
Code Examples