TYPO3  7.6
Public Member Functions | List of all members
OutputFormatterStyleInterface Interface Reference
Inheritance diagram for OutputFormatterStyleInterface:
OutputFormatterStyle

Public Member Functions

 setForeground ($color=null)
 
 setBackground ($color=null)
 
 setOption ($option)
 
 unsetOption ($option)
 
 setOptions (array $options)
 
 apply ($text)
 

Detailed Description

Formatter style interface for defining styles.

Author
Konstantin Kudryashov ever..nosp@m.zet@.nosp@m.gmail.nosp@m..com

Definition at line 21 of file OutputFormatterStyleInterface.php.

Member Function Documentation

apply (   $text)

Applies the style to a given text.

Parameters
string$textThe text to style
Returns
string

Implemented in OutputFormatterStyle.

setBackground (   $color = null)

Sets style background color.

Parameters
string$colorThe color name

Implemented in OutputFormatterStyle.

setForeground (   $color = null)

Sets style foreground color.

Parameters
string$colorThe color name

Implemented in OutputFormatterStyle.

setOption (   $option)

Sets some specific style option.

Parameters
string$optionThe option name

Implemented in OutputFormatterStyle.

setOptions ( array  $options)

Sets multiple style options at once.

Parameters
array$options

Implemented in OutputFormatterStyle.

unsetOption (   $option)

Unsets some specific style option.

Parameters
string$optionThe option name

Implemented in OutputFormatterStyle.