Class Text_Filter_words

Description

Filters the given text based on the words found in a word list file.

Parameters:

 words_file  -- Filename containing the words to replace.
 replacement -- The replacement string.  Defaults to "*****".

$Horde: framework/Text_Filter/Filter/words.php,v 1.2.10.9 2009/01/06 15:23:42 jan Exp $

Copyright 2004-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Located in /Text_Filter/Filter/words.php (line 23)

Text_Filter
   |
   --Text_Filter_words
Variable Summary
 array $_params
Method Summary
 array getPatterns ()
 array _getReplacement ( $line)
Variables
array $_params = array('replacement' => '*****') (line 30)

Filter parameters.


Redefinition of:
Text_Filter::$_params
Filter parameters.
Methods
getPatterns (line 37)

Returns a hash with replace patterns.

  • return: Patterns hash.
array getPatterns ()

Redefinition of:
Text_Filter::getPatterns()
Returns a hash with replace patterns.
_getReplacement (line 64)

Returns a hash with replace patterns.

  • return: Patterns hash.
array _getReplacement ( $line)
  • $line

Inherited Methods

Inherited From Text_Filter

 Text_Filter::Text_Filter()
 Text_Filter::factory()
 Text_Filter::filter()
 Text_Filter::getPatterns()
 Text_Filter::postProcess()
 Text_Filter::preProcess()

Documentation generated on Sun, 30 Jan 2011 05:23:28 +0000 by phpDocumentor 1.4.3