Gumbo_Interface_Filter



Filter Interface

A Filter is responsible for removing certain parts of supplied data, returning the changed data. The Library provides a Blank Filter. This will simply return the data as it's passed.

A single Filter will be responsible for performing a specific Filtering task. If data needs to remove HTML tags, then use the Filter_Tags class. The Library provides a default set of Filters, however more can be created. Simply create a class that implements the Filter Interface. If adding to the Library, place the Filter inside the 'gumbo/filter/*' directory, supplying a unique name.

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

Interface Methods

public mixed run ( mixed $data ) [line 50]

Runs the Filter process, returning the results

Parameter(s):

  • (mixed) $data :: data to filter

[ Top ]