Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

 Class JOutputFilter

Description

JOutputFilter

Located in /joomla/filter/output.php (line 24)

Class JOutputFilter   (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 107)

Replaces & with & for xhtml compliance

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

Cleans text of all formating and scripting code

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

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 39)

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 83)

This method processes a string all 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 129)

Callback method for replacing & with & in a string

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

Documentation generated on Mon, 05 Mar 2007 21:12:25 +0000 by phpDocumentor 1.3.1