TYPO3
7.6
|
Public Member Functions | |
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 Attributes | |
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 |
OutputInterface is the interface implemented by all Output classes.
Definition at line 23 of file OutputInterface.php.
getFormatter | ( | ) |
Returns current output formatter instance.
Implemented in OutputStyle, Output, and NullOutput.
Referenced by SymfonyStyle\__construct(), DialogHelper\ask(), QuestionHelper\autocomplete(), and ProgressBar\initPlaceholderFormatters().
getVerbosity | ( | ) |
Gets the current verbosity of the output.
Implemented in Output, OutputStyle, and NullOutput.
Referenced by SymfonyStyle\__construct(), ConsoleLogger\log(), Command\run(), and ProgressHelper\start().
isDecorated | ( | ) |
Gets the decorated flag.
Implemented in OutputStyle, Output, and NullOutput.
Referenced by ProgressHelper\start().
setDecorated | ( | $decorated | ) |
Sets the decorated flag.
bool | $decorated | Whether to decorate the messages |
Implemented in OutputStyle, Output, ConsoleOutput, and NullOutput.
Referenced by Application\configureIO().
setFormatter | ( | OutputFormatterInterface | $formatter | ) |
Sets output formatter.
OutputFormatterInterface | $formatter |
Implemented in OutputStyle, ConsoleOutput, Output, and NullOutput.
setVerbosity | ( | $level | ) |
Sets the verbosity of the output.
int | $level | The level of verbosity (one of the VERBOSITY constants) |
Implemented in Output, ConsoleOutput, OutputStyle, and NullOutput.
Referenced by Application\configureIO().
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 |
Implemented in SymfonyStyle, Output, NullOutput, and OutputStyle.
Referenced by DialogHelper\ask(), DialogHelper\askHiddenResponse(), QuestionHelper\autocomplete(), ProgressHelper\overwrite(), ProcessHelper\run(), ApplicationTest\testRunDispatchesAllEventsWithException(), ApplicationTest\testRunWithDispatcher(), ApplicationTest\testRunWithDispatcherSkippingCommand(), ProcessHelper\wrapCallback(), SymfonyQuestionHelper\writePrompt(), and QuestionHelper\writePrompt().
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 |
Implemented in SymfonyStyle, Output, NullOutput, and OutputStyle.
Referenced by DialogHelper\askHiddenResponse(), CommandTest\callableMethodCommand(), Application\doRun(), TestCommand\execute(), FooCommand\execute(), QuestionHelper\getHiddenResponse(), FooCommand\interact(), TestCommand\interact(), ConsoleLogger\log(), ProcessHelper\run(), Command\run(), DialogHelper\select(), CommandTest\testSetCode(), DialogHelper\validateAttempts(), QuestionHelper\writeError(), SymfonyQuestionHelper\writePrompt(), and QuestionHelper\writePrompt().
const OUTPUT_NORMAL = 0 |
Definition at line 31 of file OutputInterface.php.
Referenced by Descriptor\write(), and Output\write().
const OUTPUT_PLAIN = 2 |
Definition at line 33 of file OutputInterface.php.
Referenced by OutputTest\provideWriteArguments(), and Output\write().
const OUTPUT_RAW = 1 |
Definition at line 32 of file OutputInterface.php.
Referenced by OutputTest\provideWriteArguments(), Application\renderException(), Descriptor\write(), and Output\write().
const VERBOSITY_DEBUG = 4 |
Definition at line 29 of file OutputInterface.php.
Referenced by Application\configureIO(), ProgressBar\determineBestFormat(), ProcessHelperTest\provideCommandsAndOutput(), ProgressHelper\start(), ApplicationTest\testRun(), and OutputTest\testSetGetVerbosity().
const VERBOSITY_NORMAL = 1 |
Definition at line 26 of file OutputInterface.php.
Referenced by JsonDescriptorTest\assertDescription(), AbstractDescriptorTest\assertDescription(), InputDefinition\asText(), Application\asText(), Command\asText(), ConsoleLoggerTest\getLogger(), LegacyProgressHelperTest\getOutputStream(), LegacyTableHelperTest\getOutputStream(), TableTest\getOutputStream(), ProcessHelperTest\testPassedCallbackIsExecuted(), and OutputTest\testSetGetVerbosity().
const VERBOSITY_QUIET = 0 |
Definition at line 25 of file OutputInterface.php.
Referenced by Application\configureIO(), ProgressBar\display(), ProgressHelper\start(), OutputTest\testConstructor(), ConsoleOutputTest\testConstructor(), StreamOutputTest\testConstructor(), ProgressBarTest\testDisplayWithQuietVerbosity(), OutputTest\testSetGetVerbosity(), NullOutputTest\testVerbosity(), and OutputTest\testWriteWithVerbosityQuiet().
const VERBOSITY_VERBOSE = 2 |
Definition at line 27 of file OutputInterface.php.
Referenced by Application\configureIO(), ProgressBar\determineBestFormat(), ConsoleLoggerTest\getLogger(), ProcessHelperTest\provideCommandsAndOutput(), ApplicationTesterTest\setUp(), CommandTesterTest\setUp(), ProgressHelper\start(), CommandTesterTest\testExecute(), ApplicationTest\testRenderException(), ApplicationTesterTest\testRun(), ApplicationTest\testRun(), OutputTest\testSetGetVerbosity(), and NullOutputTest\testVerbosity().
const VERBOSITY_VERY_VERBOSE = 3 |
Definition at line 28 of file OutputInterface.php.
Referenced by Application\configureIO(), ProgressBar\determineBestFormat(), ProcessHelperTest\provideCommandsAndOutput(), Command\run(), ProgressHelper\start(), ApplicationTest\testRun(), and OutputTest\testSetGetVerbosity().