API15

JApplication/stringURLSafe: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== This method transliterates a string into an URL safe string or returns a URL safe UTF-8 string based on the global configuration <span class="editsection" style="font-...
 
m removing red link to edit, no existant pages
Line 3: Line 3:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JApplication/stringURLSafe|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>


{{Description:JApplication/stringURLSafe}}
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 46: Line 46:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JApplication/stringURLSafe|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>
{{SeeAlso:JApplication/stringURLSafe}}
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
Line 61: Line 61:
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API15]]

Revision as of 13:42, 12 May 2013

Description

This method transliterates a string into an URL safe string or returns a URL safe UTF-8 string based on the global configuration

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

static stringURLSafe($string)
Parameter Name Default Value Description
$string $input String to process

Returns

string Processed string

Defined in

libraries/joomla/application/application.php

Importing

jimport( 'joomla.application.application' );

Source Body

static public function stringURLSafe($string)
{
        $app = &JFactory::getApplication();
        if (self::getCfg('unicodeslugs') == 1)
        {
                $output = JFilterOutput::stringURLUnicodeSlug($string);
        } else {
                $output = JFilterOutput::stringURLSafe($string);
        }
        return $output;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />