TYPO3  7.6
Public Member Functions | Private Attributes | List of all members
OutputFormatterStyleStack Class Reference

Public Member Functions

 __construct (OutputFormatterStyleInterface $emptyStyle=null)
 
 reset ()
 
 push (OutputFormatterStyleInterface $style)
 
 pop (OutputFormatterStyleInterface $style=null)
 
 getCurrent ()
 
 setEmptyStyle (OutputFormatterStyleInterface $emptyStyle)
 
 getEmptyStyle ()
 

Private Attributes

 $styles
 
 $emptyStyle
 

Detailed Description

Author
Jean-François Simon conta.nosp@m.ct@j.nosp@m.fsimo.nosp@m.n.fr

Definition at line 17 of file OutputFormatterStyleStack.php.

Constructor & Destructor Documentation

__construct ( OutputFormatterStyleInterface  $emptyStyle = null)

Constructor.

Parameters
OutputFormatterStyleInterface | null$emptyStyle

Definition at line 34 of file OutputFormatterStyleStack.php.

References OutputFormatterStyleStack\$emptyStyle, and OutputFormatterStyleStack\reset().

Member Function Documentation

getCurrent ( )

Computes current style with stacks top codes.

Returns
OutputFormatterStyle

Definition at line 93 of file OutputFormatterStyleStack.php.

References OutputFormatterStyleStack\$emptyStyle.

getEmptyStyle ( )
pop ( OutputFormatterStyleInterface  $style = null)

Pops a style from the stack.

Parameters
OutputFormatterStyleInterface | null$style
Returns
OutputFormatterStyleInterface
Exceptions
\InvalidArgumentExceptionWhen style tags incorrectly nested

Definition at line 67 of file OutputFormatterStyleStack.php.

References OutputFormatterStyleStack\$emptyStyle.

Pushes a style in the stack.

Parameters
OutputFormatterStyleInterface$style

Definition at line 53 of file OutputFormatterStyleStack.php.

reset ( )

Resets stack (ie. empty internal arrays).

Definition at line 43 of file OutputFormatterStyleStack.php.

Referenced by OutputFormatterStyleStack\__construct().

setEmptyStyle ( OutputFormatterStyleInterface  $emptyStyle)

Member Data Documentation

$emptyStyle
private
$styles
private

Definition at line 22 of file OutputFormatterStyleStack.php.