Gumbo_Filter_Language

Gumbo_Filter_Preg
   |
   --Gumbo_Filter_Language

Language Filter Class

Author(s): Michael Luster <mluster79@yahoo.com>
License:New BSD License
Copyright:Copyright (c) 2007, iBayou, Michael Luster
Link:http://sourceforge.net/projects/phpgumbo
Version:0.0.1

Inherited Methods

Class Variables

array $_words = array () [line 38]

Class Methods

public Gumbo_Filter_Language __construct ( [string $char] ) [line 46]

Constructor

Parameter(s):

  • (string) $char :: replacement character
Overrides
Gumbo_Filter_Preg::__construct()

[ Top ]
public void addWord ( string $word ) [line 69]

Adds a Word (or Word Pattern) to the list

Parameter(s):

  • (string) $word
  • throws:  Gumbo_Exception

[ Top ]
public array|string getWords ( [bool $as_string] ) [line 173]

Returns ALL the Filter Words

Parameter(s):

  • (bool) $as_string :: formats as a string pattern

[ Top ]
public bool isWord ( string $word ) [line 201]

Returns if the Word (Pattern) Exists

Parameter(s):

  • (string) $word

[ Top ]
public void removeWord ( string $word ) [line 91]

Removes a Word (or Word Pattern) from the list

Parameter(s):

  • (string) $word
  • throws:  Gumbo_Exception

[ Top ]
public void resetWords ( ) [line 118]

Resets ALL the Words

  • postcondition:  words to default

[ Top ]
public string run ( string $data ) [line 59]

Runs the Filter process, returning the results

Parameter(s):

  • (string) $data :: data to filter
Overrides
Gumbo_Filter_Preg::run()

[ Top ]
public void setWords ( [string $words] ) [line 137]

Sets the Words (or Word Patterns) to Filter

Parameter(s):

  • (string) $words
  • throws:  Gumbo_Exception

[ Top ]