API17:JFilterOutput
From Joomla! Documentation
(Difference between revisions)
(Layout updates) |
(Updated to r1448:247ba8d88526) |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|11.1}} JFilterOutput== | ||
| + | ===Description=== | ||
| + | {{Description:JFilterOutput}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[Description:JFilterOutput|Edit Descripton]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[Description:JFilterOutput|Edit Descripton]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
| + | !Visibility | ||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
| + | |public static | ||
|[[JFilterOutput::_ampReplaceCallback/11.1|_ampReplaceCallback]] | |[[JFilterOutput::_ampReplaceCallback/11.1|_ampReplaceCallback]] | ||
|Callback method for replacing & with & in a string. | |Callback method for replacing & with & in a string. | ||
|- | |- | ||
| + | |public static | ||
|[[JFilterOutput::ampReplace/11.1|ampReplace]] | |[[JFilterOutput::ampReplace/11.1|ampReplace]] | ||
|Replaces & with & for xhtml compliance. | |Replaces & with & for xhtml compliance. | ||
|- | |- | ||
| + | |public static | ||
|[[JFilterOutput::cleanText/11.1|cleanText]] | |[[JFilterOutput::cleanText/11.1|cleanText]] | ||
|Cleans text of all formating and scripting code. | |Cleans text of all formating and scripting code. | ||
|- | |- | ||
| + | |public static | ||
|[[JFilterOutput::linkXHTMLSafe/11.1|linkXHTMLSafe]] | |[[JFilterOutput::linkXHTMLSafe/11.1|linkXHTMLSafe]] | ||
|This method processes a string and replaces all instances of & with & in links only. | |This method processes a string and replaces all instances of & with & in links only. | ||
|- | |- | ||
| + | |public static | ||
|[[JFilterOutput::objectHTMLSafe/11.1|objectHTMLSafe]] | |[[JFilterOutput::objectHTMLSafe/11.1|objectHTMLSafe]] | ||
|Makes an object safe to display in forms. | |Makes an object safe to display in forms. | ||
|- | |- | ||
| + | |public static | ||
|[[JFilterOutput::stringURLSafe/11.1|stringURLSafe]] | |[[JFilterOutput::stringURLSafe/11.1|stringURLSafe]] | ||
|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. | ||
|- | |- | ||
| + | |public static | ||
|[[JFilterOutput::stringURLUnicodeSlug/11.1|stringURLUnicodeSlug]] | |[[JFilterOutput::stringURLUnicodeSlug/11.1|stringURLUnicodeSlug]] | ||
|This method implements unicode slugs instead of transliteration. | |This method implements unicode slugs instead of transliteration. | ||
|- | |- | ||
| + | |public static | ||
|[[JFilterOutput::stripImages/11.1|stripImages]] | |[[JFilterOutput::stripImages/11.1|stripImages]] | ||
|Strip img-tags from string. | |Strip img-tags from string. | ||
|- | |- | ||
|} | |} | ||
| + | * '''Defined in''' libraries/joomla/filter/filteroutput.php | ||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.filter.filteroutput' );</source> | <source lang="php">jimport( 'joomla.filter.filteroutput' );</source> | ||
===See also=== | ===See also=== | ||
| − | * JFilterOutput source code | + | * {{JVer|11.1}} '''JFilterOutput source code''' on [[jplatform:filter/filteroutput.php|BitBucket]] |
| − | * [[JFilterOutput|Other versions of | + | * {{JVer|11.1}} Subpackage [[Subpackage Filter/11.1|Filter]] |
| + | * [[JFilterOutput|Other versions of JFilterOutput]] | ||
{{SeeAlso:JFilterOutput}} | {{SeeAlso:JFilterOutput}} | ||
<span class="editsection" style="font-size:76%;"> | <span class="editsection" style="font-size:76%;"> | ||
<nowiki>[</nowiki>[[SeeAlso:JFilterOutput|Edit See Also]]<nowiki>]</nowiki> | <nowiki>[</nowiki>[[SeeAlso:JFilterOutput|Edit See Also]]<nowiki>]</nowiki> | ||
</span> | </span> | ||
| − | === | + | ===User contributed notes=== |
<CodeExamplesForm /> | <CodeExamplesForm /> | ||
<dpl> | <dpl> | ||
| Line 59: | Line 65: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JFilterOutput]]</noinclude> | <noinclude>[[Category:Platform]][[Category:Platform 11.1]][[Category:JFilterOutput]]</noinclude> | ||
Revision as of 18:01, 27 April 2011
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.
JFilterOutput
Description
Description:JFilterOutput [Edit Descripton]
Methods
| Visibility | Method name | Description |
|---|---|---|
| public static | _ampReplaceCallback | Callback method for replacing & with & in a string. |
| public static | ampReplace | Replaces & with & for xhtml compliance. |
| public static | cleanText | Cleans text of all formating and scripting code. |
| public static | linkXHTMLSafe | This method processes a string and replaces all instances of & with & in links only. |
| public static | objectHTMLSafe | Makes an object safe to display in forms. |
| public static | stringURLSafe | 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 | stringURLUnicodeSlug | This method implements unicode slugs instead of transliteration. |
| public static | stripImages | Strip img-tags from string. |
- Defined in libraries/joomla/filter/filteroutput.php
Importing
jimport( 'joomla.filter.filteroutput' );
See also
-
JFilterOutput source code on BitBucket
-
Subpackage Filter
- Other versions of JFilterOutput
SeeAlso:JFilterOutput [Edit See Also]
User contributed notes
<CodeExamplesForm />
