[ 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/ -> highlightquotes.php (sommaire)

(pas de description)

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

Définit 1 class

Text_Filter_highlightquotes:: (4 méthodes):
  preProcess()
  getPatterns()
  postProcess()
  _addQuoteToggles()


Classe: Text_Filter_highlightquotes  - X-Ref

Highlights quoted messages with different colors for the different quoting
levels.

CSS class names called "quoted1" ... "quoted{$cssLevels}" must be present.
The text to be passed in must have already been passed through
htmlspecialchars().

Parameters:
<pre>
'citeblock'  -- Display cite blocks? Defaults to true.
'cssLevels'  -- Number of defined CSS class names. Defaults to 5.
'hideBlocks' -- Hide quoted text blocks by default? Defaults to false.
</pre>

$Horde: framework/Text_Filter/Filter/highlightquotes.php,v 1.6.8.16 2006/08/16 16:56:00 slusarz Exp $

Copyright 2004-2006 Michael Slusarz <slusarz@curecanti.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.

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.

_addQuoteToggles($matches)   X-Ref
Adds links to show and hide quoted blocks, hiding them by default if
the 'hideBlocks' parameter is true.

param: array $matches  The matches from the regexp.



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