Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct ($noColors=null) | |
addStyle ($name, ColorStyle $style) | |
process ($string) | |
Fonctions membres publiques statiques | |
static | stripColors ($string) |
Champs de données | |
$noColors = false | |
Attributs protégés | |
$tagFilter = '/<([a-z=;]+)>(.*?)<\/\\1>/s' | |
$styles = array() | |
Attributs protégés statiques | |
static | $stripFilter = '/<[\/]?[a-z=;]+>/' |
Fonctions membres privées | |
replaceColors ($text, $tag, $match, Colorstyle $style) | |
addPredefinedStyles () | |
__construct | ( | $noColors = null | ) |
Class constructor
boolean | $noColors | Defines non-colored mode on construct |
Références ColorProcessor\$noColors, ColorProcessor\addPredefinedStyles(), et null.
|
private |
Adds predefined color styles to the ColorProcessor object
Références ColorProcessor\addStyle().
Référencé par ColorProcessor\__construct().
addStyle | ( | $name, | |
ColorStyle | $style | ||
) |
Add a style.
string | $name | The style name. |
ColorStyle | $style | The color style. |
Référencé par ColorProcessor\addPredefinedStyles().
process | ( | $string | ) |
Process a string.
string | $string | The string to process. |
Implémente ProcessorInterface.
Références $i, elseif, ColorStyle\fromString(), et ColorProcessor\replaceColors().
|
private |
Replace color tags in a string.
string | $text | The original text. |
string | $tag | The matched tag. |
string | $match | The match. |
ColorStyle | $style | The color style to apply. |
Référencé par ColorProcessor\process().
|
static |
Strip color tags from a string.
string | $string | The string. |
$noColors = false |
Référencé par ColorProcessor\__construct().
|
staticprotected |
|
protected |
|
protected |