Difference between revisions of "JFilterOutput::stringURLSafe"
From Joomla! Documentation
(Updated to r1448:247ba8d88526) |
m (preparing for archive only) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
This method processes a string and replaces all accented UTF-8 characters by unaccented ASCII-7 "equivalents", whitespaces are replaced by hyphens and the string is lowercased. | This method processes a string and replaces all accented UTF-8 characters by unaccented ASCII-7 "equivalents", whitespaces are replaced by hyphens and the string is lowercased. | ||
− | + | ||
− | + | ||
− | |||
− | |||
<source lang="php"> | <source lang="php"> | ||
public static function stringURLSafe ($string) | public static function stringURLSafe ($string) | ||
Line 28: | Line 26: | ||
* '''Since''' {{JVer|11.1 }} | * '''Since''' {{JVer|11.1 }} | ||
* '''Referenced by''' | * '''Referenced by''' | ||
− | ** [[JApplication::stringURLSafe | + | ** [[API17:JApplication::stringURLSafe|JApplication::stringURLSafe]] |
===See also=== | ===See also=== | ||
* {{JVer|11.1}} '''JFilterOutput::stringURLSafe source code''' on [[jplatform:filter/filteroutput.php#cl-71|BitBucket]] | * {{JVer|11.1}} '''JFilterOutput::stringURLSafe source code''' on [[jplatform:filter/filteroutput.php#cl-71|BitBucket]] | ||
− | * {{JVer|11.1}} Class [[JFilterOutput | + | * {{JVer|11.1}} Class [[API17:JFilterOutput|JFilterOutput]] |
− | * {{JVer|11.1}} Subpackage [[Subpackage_Filter | + | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Filter|Filter]] |
− | * [[JFilterOutput::stringURLSafe|Other versions of JFilterOutput::stringURLSafe]] | + | * [[API17:JFilterOutput::stringURLSafe|Other versions of JFilterOutput::stringURLSafe]] |
− | + | ||
− | + | ||
− | |||
− | |||
===User contributed notes=== | ===User contributed notes=== | ||
− | + | === Code Examples === | |
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JFilterOutput::stringURLSafe | category=JFilterOutput::stringURLSafe | ||
− | + | namespace=CodeExample | |
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Line 49: | Line 45: | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> |
Latest revision as of 22:02, 24 March 2017
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JFilterOutput::stringURLSafe[edit]
Description[edit]
This method processes a string and replaces all accented UTF-8 characters by unaccented ASCII-7 "equivalents", whitespaces are replaced by hyphens and the string is lowercased.
public static function stringURLSafe ($string)
Parameter | Type | Default | Description |
---|---|---|---|
$string | string | $input String to process |
- Returns string Processed string
- Defined on line 79 of libraries/joomla/filter/filteroutput.php
- Since
- Referenced by
See also[edit]
- JFilterOutput::stringURLSafe source code on BitBucket
- Class JFilterOutput
- Subpackage Filter
- Other versions of JFilterOutput::stringURLSafe
User contributed notes[edit]
Code Examples[edit]