Joomla! 1.5 API

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2011 Open Source Matters Inc and can be used in accordance with the Joomla! Electronic Documentation License. Some parts of this website may be subject to other licenses.

 Class JFilterOutput

Description

JFilterOutput

  • since: 1.5

Located in /joomla/filter/filteroutput.php (line 23)

Class JFilterOutput   (Subpackage Filter)
Method Summary
Static method static void ampReplace ( $text)
Static method static string linkXHTMLSafe (string $input)
Static method static void objectHTMLSafe (object An &$mixed, [int $quote_style = ENT_QUOTES], [string|array $exclude_keys = ''])
Static method static string stringURLSafe ( $string, string $input)
Static method static string _ampReplaceCallback (string $m)
Method void cleanText ( &$text)
Methods
ampReplace (line 106)

Replaces & with & for xhtml compliance

  • todo: There must be a better way???
  • since: 1.5
void ampReplace ( $text)
  • $text
cleanText (line 135)

Cleans text of all formating and scripting code

void cleanText ( &$text)
  • &$text
linkXHTMLSafe (line 67)

This method processes a string and replaces all instances of & with & in links only

  • return: Processed string
  • since: 1.5
string linkXHTMLSafe (string $input)
  • string $input: String to process
objectHTMLSafe (line 38)

Makes an object safe to display in forms

Object parameters that are non-string, array, object or start with underscore will be converted

  • since: 1.5
void objectHTMLSafe (object An &$mixed, [int $quote_style = ENT_QUOTES], [string|array $exclude_keys = ''])
  • object An &$mixed: object to be parsed
  • int $quote_style: The optional quote style for the htmlspecialchars function
  • string|array $exclude_keys: An optional single field name or array of field names not to be parsed (eg, for a textarea)
stringURLSafe (line 82)

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.

  • return: Processed string
  • since: 1.5
string stringURLSafe ( $string, string $input)
  • string $input: String to process
  • $string
_ampReplaceCallback (line 126)

Callback method for replacing & with & in a string

  • return: Replaced string
  • since: 1.5
string _ampReplaceCallback (string $m)
  • string $m: String to process
Support Joomla!