![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct ($foreground=null, $background=null, array $options=array()) | |
setForeground ($color=null) | |
setBackground ($color=null) | |
setOption ($option) | |
unsetOption ($option) | |
setOptions (array $options) | |
apply ($text) | |
Private Attributes | |
$foreground | |
$background | |
$options = array() | |
Static Private Attributes | |
static | $availableForegroundColors |
static | $availableBackgroundColors |
static | $availableOptions |
Formatter style class for defining styles.
Definition at line 21 of file OutputFormatterStyle.php.
__construct | ( | $foreground = null , |
|
$background = null , |
|||
array | $options = array() |
||
) |
Initializes output formatter style.
string | null | $foreground | The style foreground color name |
string | null | $background | The style background color name |
array | $options | The style options |
Definition at line 66 of file OutputFormatterStyle.php.
References OutputFormatterStyle\$background, OutputFormatterStyle\$foreground, OutputFormatterStyle\$options, OutputFormatterStyle\setBackground(), OutputFormatterStyle\setForeground(), and OutputFormatterStyle\setOptions().
apply | ( | $text | ) |
Applies the style to a given text.
string | $text | The text to style |
Implements OutputFormatterStyleInterface.
Definition at line 203 of file OutputFormatterStyle.php.
setBackground | ( | $color = null | ) |
Sets style background color.
string | null | $color | The color name |
\InvalidArgumentException | When the color name isn't defined |
Implements OutputFormatterStyleInterface.
Definition at line 116 of file OutputFormatterStyle.php.
Referenced by OutputFormatterStyle\__construct().
setForeground | ( | $color = null | ) |
Sets style foreground color.
string | null | $color | The color name |
\InvalidArgumentException | When the color name isn't defined |
Implements OutputFormatterStyleInterface.
Definition at line 88 of file OutputFormatterStyle.php.
Referenced by OutputFormatterStyle\__construct().
setOption | ( | $option | ) |
Sets some specific style option.
string | $option | The option name |
\InvalidArgumentException | When the option name isn't defined |
Implements OutputFormatterStyleInterface.
Definition at line 144 of file OutputFormatterStyle.php.
Referenced by OutputFormatterStyle\setOptions().
setOptions | ( | array | $options | ) |
Sets multiple style options at once.
array | $options |
Implements OutputFormatterStyleInterface.
Definition at line 187 of file OutputFormatterStyle.php.
References OutputFormatterStyle\setOption().
Referenced by OutputFormatterStyle\__construct().
unsetOption | ( | $option | ) |
Unsets some specific style option.
string | $option | The option name |
\InvalidArgumentException | When the option name isn't defined |
Implements OutputFormatterStyleInterface.
Definition at line 166 of file OutputFormatterStyle.php.
|
staticprivate |
Definition at line 34 of file OutputFormatterStyle.php.
|
staticprivate |
Definition at line 23 of file OutputFormatterStyle.php.
|
staticprivate |
Definition at line 45 of file OutputFormatterStyle.php.
|
private |
Definition at line 54 of file OutputFormatterStyle.php.
Referenced by OutputFormatterStyle\__construct().
|
private |
Definition at line 53 of file OutputFormatterStyle.php.
Referenced by OutputFormatterStyle\__construct().
|
private |
Definition at line 55 of file OutputFormatterStyle.php.
Referenced by OutputFormatterStyle\__construct().