TYPO3
7.6
|
Public Member Functions | |
__construct (OutputInterface $output) | |
newLine ($count=1) | |
createProgressBar ($max=0) | |
write ($messages, $newline=false, $type=self::OUTPUT_NORMAL) | |
writeln ($messages, $type=self::OUTPUT_NORMAL) | |
setVerbosity ($level) | |
getVerbosity () | |
setDecorated ($decorated) | |
isDecorated () | |
setFormatter (OutputFormatterInterface $formatter) | |
getFormatter () | |
Public Member Functions inherited from StyleInterface | |
title ($message) | |
section ($message) | |
listing (array $elements) | |
text ($message) | |
success ($message) | |
error ($message) | |
warning ($message) | |
note ($message) | |
caution ($message) | |
table (array $headers, array $rows) | |
ask ($question, $default=null, $validator=null) | |
askHidden ($question, $validator=null) | |
confirm ($question, $default=true) | |
choice ($question, array $choices, $default=null) | |
progressStart ($max=0) | |
progressAdvance ($step=1) | |
progressFinish () | |
Private Attributes | |
$output | |
Additional Inherited Members | |
Public Attributes inherited from OutputInterface | |
const | VERBOSITY_QUIET = 0 |
const | VERBOSITY_NORMAL = 1 |
const | VERBOSITY_VERBOSE = 2 |
const | VERBOSITY_VERY_VERBOSE = 3 |
const | VERBOSITY_DEBUG = 4 |
const | OUTPUT_NORMAL = 0 |
const | OUTPUT_RAW = 1 |
const | OUTPUT_PLAIN = 2 |
Decorates output to add console style guide helpers.
Definition at line 23 of file OutputStyle.php.
__construct | ( | OutputInterface | $output | ) |
OutputInterface | $output |
Definition at line 30 of file OutputStyle.php.
References OutputStyle\$output.
createProgressBar | ( | $max = 0 | ) |
getFormatter | ( | ) |
{Returns current output formatter instance.
Implements OutputInterface.
Definition at line 112 of file OutputStyle.php.
Referenced by SymfonyStyle\block().
getVerbosity | ( | ) |
{Gets the current verbosity of the output.
Implements OutputInterface.
Definition at line 80 of file OutputStyle.php.
isDecorated | ( | ) |
{Gets the decorated flag.
Implements OutputInterface.
Definition at line 96 of file OutputStyle.php.
Referenced by SymfonyStyle\block().
newLine | ( | $count = 1 | ) |
{Add newline(s).
int | $count | The number of newlines |
Implements StyleInterface.
Definition at line 38 of file OutputStyle.php.
setDecorated | ( | $decorated | ) |
{Sets the decorated flag.
bool | $decorated | Whether to decorate the messages |
Implements OutputInterface.
Definition at line 88 of file OutputStyle.php.
setFormatter | ( | OutputFormatterInterface | $formatter | ) |
{Sets output formatter.
OutputFormatterInterface | $formatter |
Implements OutputInterface.
Definition at line 104 of file OutputStyle.php.
setVerbosity | ( | $level | ) |
{Sets the verbosity of the output.
int | $level | The level of verbosity (one of the VERBOSITY constants) |
Implements OutputInterface.
Definition at line 72 of file OutputStyle.php.
write | ( | $messages, | |
$newline = false , |
|||
$type = self::OUTPUT_NORMAL |
|||
) |
{Writes a message to the output.
string | array | $messages | The message as an array of lines or a single string |
bool | $newline | Whether to add a newline |
int | $type | The type of output (one of the OUTPUT constants) |
\InvalidArgumentException | When unknown output type is given |
Implements OutputInterface.
Definition at line 56 of file OutputStyle.php.
writeln | ( | $messages, | |
$type = self::OUTPUT_NORMAL |
|||
) |
{Writes a message to the output and adds a newline at the end.
string | array | $messages | The message as an array of lines of a single string |
int | $type | The type of output (one of the OUTPUT constants) |
\InvalidArgumentException | When unknown output type is given |
Implements OutputInterface.
Definition at line 64 of file OutputStyle.php.
|
private |
Definition at line 25 of file OutputStyle.php.
Referenced by OutputStyle\__construct().