5 * Abstract Savant2_Filter class.
7 * You have to extend this class for it to be useful; e.g., "class
8 * Savant2_Filter_example extends Savant2_Filter".
10 * $Id: Filter.php,v 1.2 2005/08/09 22:19:39 pmjones Exp $
12 * @author Paul M. Jones <pmjones@ciaweb.net>
16 * @license LGPL http://www.gnu.org/copyleft/lesser.html
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU Lesser General Public License as
20 * published by the Free Software Foundation; either version 2.1 of the
21 * License, or (at your option) any later version.
23 * This program is distributed in the hope that it will be useful, but
24 * WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26 * Lesser General Public License for more details.
30 class Savant2_Filter {
34 * Optional reference to the calling Savant object.
51 function Savant2_Filter($conf = array())
53 settype($conf, 'array');
54 foreach ($conf as $key => $val) {
62 * Stub method for extended behaviors.
66 * @param string &$text The text to filter.
72 function filter(&$text)