JFile::makeSafe: Difference between revisions
From Joomla! Documentation
Layout updates |
Updated to r1448:247ba8d88526 |
||
| Line 8: | Line 8: | ||
<nowiki>[</nowiki>[[Description:JFile::makeSafe|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JFile::makeSafe|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
<source lang="php"> | <source lang="php"> | ||
public static | public static function makeSafe ($file) | ||
</source> | </source> | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 27: | Line 24: | ||
|- | |- | ||
|} | |} | ||
* '''Returns''' string The sanitised string | |||
string The sanitised string | * '''Defined''' on line 60 of libraries/joomla/filesystem/file.php | ||
* '''Since''' {{JVer|11.1 }} | |||
libraries/joomla/filesystem/file.php | |||
* | |||
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JFile::makeSafe source code''' on [[jplatform:filesystem/file.php#cl-52|BitBucket]] | |||
* {{JVer|11.1}} Class [[JFile/11.1|JFile]] | |||
* {{JVer|11.1}} Subpackage [[Subpackage_Filesystem/11.1|Filesystem]] | |||
* [[JFile::makeSafe|Other versions of JFile::makeSafe]] | |||
{{SeeAlso:JFile::makeSafe}} | |||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JFile::makeSafe|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JFile::makeSafe|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
===User contributed notes=== | |||
=== | |||
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 48: | Line 44: | ||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:JFile]][[Category:JFile::makeSafe]]</noinclude> | <noinclude>[[Category:JFile]][[Category:JFile::makeSafe]]</noinclude> | ||
Revision as of 01:56, 28 April 2011
JFile::makeSafe
Description
Makes file name safe to use.
Template:Description:JFile::makeSafe [Edit Descripton]
public static function makeSafe ($file)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $file | string | The name of the file [not full path] |
- Returns string The sanitised string
- Defined on line 60 of libraries/joomla/filesystem/file.php
- Since

See also
JFile::makeSafe source code on BitBucket
Class JFile
Subpackage Filesystem- Other versions of JFile::makeSafe
Template:SeeAlso:JFile::makeSafe [Edit See Also]
User contributed notes
<CodeExamplesForm />