| [ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 169 lignes (5 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
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.| 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 |