Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
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 = [] | |
Attributs protégés statiques | |
static | $stripFilter = '/<[\/]?[a-z=;]+>/' |
Fonctions membres privées | |
replaceColors ($text, $tag, $match, ColorStyle $style) | |
addPredefinedStyles () | |
Command line output processor supporting ANSI-colored output
joomla/console
package instead __construct | ( | $noColors = null | ) |
Class constructor
boolean | $noColors | Defines non-colored mode on construct |
Références null.
|
private |
Adds predefined color styles to the ColorProcessor object
Références $this.
addStyle | ( | $name, | |
ColorStyle | $style | ||
) |
Add a style.
string | $name | The style name. |
ColorStyle | $style | The color style. |
process | ( | $string | ) |
Process a string.
string | $string | The string to process. |
Implémente ProcessorInterface.
Références $i, elseif, et ColorStyle\fromString().
|
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. |
|
static |
Strip color tags from a string.
string | $string | The string. |
$noColors = false |
|
staticprotected |
|
protected |
|
protected |