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 ($fg='', $bg='', $options=array()) | |
__toString () | |
getStyle () | |
getKnownColors () | |
getKnownOptions () | |
Fonctions membres publiques statiques | |
static | fromString ($string) |
Attributs privés | |
$fgColor = 0 | |
$bgColor = 0 | |
$options = array() | |
Attributs privés statiques | |
static | $knownColors |
static | $knownOptions |
static | $fgBase = 30 |
static | $bgBase = 40 |
__construct | ( | $fg = '' , |
|
$bg = '' , |
|||
$options = array() |
|||
) |
Constructor
string | $fg | Foreground color. |
string | $bg | Background color. |
array | $options | Style options. |
Références $option, ColorStyle\$options, ColorStyle\getKnownColors(), et ColorStyle\getKnownOptions().
__toString | ( | ) |
|
static |
Create a color style from a parameter string.
Example: fg=red;bg=blue;options=bold,blink
string | $string | The parameter string. |
Références ColorStyle\$options, $parts, et Input\count().
Référencé par ColorProcessor\process().
getKnownColors | ( | ) |
getKnownOptions | ( | ) |
getStyle | ( | ) |
Get the translated color code.
Références ColorStyle\$bgColor, ColorStyle\$fgColor, et $option.
Référencé par ColorStyle\__toString().
|
staticprivate |
|
private |
Référencé par ColorStyle\getStyle().
|
staticprivate |
|
private |
Référencé par ColorStyle\getStyle().
|
staticprivate |
|
staticprivate |
|
private |
Référencé par ColorStyle\__construct(), et ColorStyle\fromString().