JFilterOutput/1.5
From Joomla! Documentation
< JFilterOutput(Difference between revisions)
(Bulk upload by Doxiki2) |
(Layout updates) |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| + | =={{JVer|1.5}} 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 | ||
|[[JFilterOutput::cleanText/1.5|cleanText]] | |[[JFilterOutput::cleanText/1.5|cleanText]] | ||
|Cleans text of all formating and scripting code. | |Cleans text of all formating and scripting code. | ||
|- | |- | ||
| + | |public | ||
|[[JFilterOutput::_ampReplaceCallback/1.5|_ampReplaceCallback]] | |[[JFilterOutput::_ampReplaceCallback/1.5|_ampReplaceCallback]] | ||
|Callback method for replacing & with & in a string. | |Callback method for replacing & with & in a string. | ||
|- | |- | ||
| + | |public | ||
|[[JFilterOutput::ampReplace/1.5|ampReplace]] | |[[JFilterOutput::ampReplace/1.5|ampReplace]] | ||
|Replaces & with & for xhtml compliance. | |Replaces & with & for xhtml compliance. | ||
|- | |- | ||
| + | |public | ||
|[[JFilterOutput::linkXHTMLSafe/1.5|linkXHTMLSafe]] | |[[JFilterOutput::linkXHTMLSafe/1.5|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 | ||
|[[JFilterOutput::objectHTMLSafe/1.5|objectHTMLSafe]] | |[[JFilterOutput::objectHTMLSafe/1.5|objectHTMLSafe]] | ||
|Makes an object safe to display in forms. | |Makes an object safe to display in forms. | ||
|- | |- | ||
| + | |public | ||
|[[JFilterOutput::stringURLSafe/1.5|stringURLSafe]] | |[[JFilterOutput::stringURLSafe/1.5|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. | ||
|- | |- | ||
|} | |} | ||
| + | * '''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=== | ||
| + | * {{JVer|1.5}} '''JFilterOutput''' on [http://api.joomla.org/Joomla-Framework/Filter/JFilterOutput.html api.joomla.org] | ||
| + | * {{JVer|1.5}} '''JFilterOutput source code''' on [[jframework15:filter/filteroutput.php|JoomlaCode]] | ||
| + | * {{JVer|1.5}} Subpackage [[Subpackage Filter/1.5|Filter]] | ||
| + | * [[JFilterOutput|Other versions of 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 52: | Line 58: | ||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
| + | namespace=CodeExample | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JFilterOutput]]</noinclude> | <noinclude>[[Category:Framework]][[Category:Framework 1.5]][[Category:JFilterOutput]]</noinclude> | ||
Revision as of 18:09, 25 April 2011
JFilterOutput
Description
Description:JFilterOutput [Edit Descripton]
Methods
| Visibility | Method name | Description |
|---|---|---|
| public | cleanText | Cleans text of all formating and scripting code. |
| public | _ampReplaceCallback | Callback method for replacing & with & in a string. |
| public | ampReplace | Replaces & with & for xhtml compliance. |
| public | linkXHTMLSafe | This method processes a string and replaces all instances of & with & in links only. |
| public | objectHTMLSafe | Makes an object safe to display in forms. |
| public | 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. |
- Defined in libraries/joomla/filter/filteroutput.php
Importing
jimport( 'joomla.filter.filteroutput' );
See also
-
JFilterOutput on api.joomla.org
-
JFilterOutput source code on JoomlaCode
-
Subpackage Filter
- Other versions of JFilterOutput
SeeAlso:JFilterOutput [Edit See Also]
User contributed notes
<CodeExamplesForm />