TYPO3
7.6
|
Public Member Functions | |
setForeground ($color=null) | |
setBackground ($color=null) | |
setOption ($option) | |
unsetOption ($option) | |
setOptions (array $options) | |
apply ($text) | |
Formatter style interface for defining styles.
Definition at line 21 of file OutputFormatterStyleInterface.php.
apply | ( | $text | ) |
Applies the style to a given text.
string | $text | The text to style |
Implemented in OutputFormatterStyle.
setBackground | ( | $color = null | ) |
Sets style background color.
string | $color | The color name |
Implemented in OutputFormatterStyle.
setForeground | ( | $color = null | ) |
Sets style foreground color.
string | $color | The color name |
Implemented in OutputFormatterStyle.
setOption | ( | $option | ) |
Sets some specific style option.
string | $option | The option name |
Implemented in OutputFormatterStyle.
setOptions | ( | array | $options | ) |
unsetOption | ( | $option | ) |
Unsets some specific style option.
string | $option | The option name |
Implemented in OutputFormatterStyle.