[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/Text/ -> Filter.php (sommaire)

(pas de description)

Poids: 169 lignes (5 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

Text_Filter:: (6 méthodes):
  Text_Filter()
  filter()
  preProcess()
  getPatterns()
  postProcess()
  factory()


Classe: Text_Filter  - X-Ref

Text_Filter:: is a parent class for defining stackable text filters.

$Horde: framework/Text_Filter/Filter.php,v 1.15.2.9 2006/05/11 19:49:14 chuck Exp $

Copyright 1999-2006 Chuck Hagenbuch <chuck@horde.org>
Copyright 2004-2006 Jan Schneider <jan@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.

Text_Filter($params = array()   X-Ref
Constructor.

param: array $params  Any parameters that the filter instance needs.

filter($text, $filters = array()   X-Ref
Applies a set of patterns to a block of text.

param: string $text     The text to filter.
param: array $patterns  The array of patterns to filter with.
return: string  The transformed text.

preProcess($text)   X-Ref
Executes any code necessaray before applying the filter
patterns.

param: string $text  The text before the filtering.
return: string  The modified text.

getPatterns()   X-Ref
Returns a hash with replace patterns.

return: array  Patterns hash.

postProcess($text)   X-Ref
Executes any code necessaray after applying the filter
patterns.

param: string $text  The text after the filtering.
return: string  The modified text.

factory($driver, $params = array()   X-Ref
Attempts to return a concrete Text_filter instance based on
$driver.

param: mixed $driver  The type of concrete Text_Filter subclass to
param: array $params  A hash containing any additional configuration
return: Text_Filter  The newly created concrete Text_Filter instance,



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7