[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/symfony/console/Symfony/Component/Console/Formatter/ -> OutputFormatter.php (summary)

(no description)

File Size: 238 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

OutputFormatter:: (11 methods):
  escape()
  __construct()
  setDecorated()
  isDecorated()
  setStyle()
  hasStyle()
  getStyle()
  format()
  getStyleStack()
  createStyleFromString()
  applyCurrentStyle()


Class: OutputFormatter  - X-Ref

Formatter class for console output.

escape($text)   X-Ref
Escapes "<" special char in given text.

param: string $text Text to escape
return: string Escaped text

__construct($decorated = false, array $styles = array()   X-Ref
Initializes console output formatter.

param: bool                            $decorated Whether this formatter should actually decorate strings
param: OutputFormatterStyleInterface[] $styles    Array of "name => FormatterStyle" instances

setDecorated($decorated)   X-Ref
Sets the decorated flag.

param: bool $decorated Whether to decorate the messages or not

isDecorated()   X-Ref
Gets the decorated flag.

return: bool true if the output will decorate messages, false otherwise

setStyle($name, OutputFormatterStyleInterface $style)   X-Ref
Sets a new style.

param: string                        $name  The style name
param: OutputFormatterStyleInterface $style The style instance

hasStyle($name)   X-Ref
Checks if output formatter has style with specified name.

param: string $name
return: bool

getStyle($name)   X-Ref
Gets style options from style with specified name.

param: string $name
return: OutputFormatterStyleInterface

format($message)   X-Ref
Formats a message according to the given styles.

param: string $message The message to style
return: string The styled message

getStyleStack()   X-Ref

return: OutputFormatterStyleStack

createStyleFromString($string)   X-Ref
Tries to create new style instance from string.

param: string $string
return: OutputFormatterStyle|bool false if string is not format string

applyCurrentStyle($text)   X-Ref
Applies current style from stack to text, if must be applied.

param: string $text Input text
return: string Styled text



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1