TYPO3
7.6
|
Public Member Functions | |
__construct ($verbosity=self::VERBOSITY_NORMAL, $decorated=false, OutputFormatterInterface $formatter=null) | |
setFormatter (OutputFormatterInterface $formatter) | |
getFormatter () | |
setDecorated ($decorated) | |
isDecorated () | |
setVerbosity ($level) | |
getVerbosity () | |
isQuiet () | |
isVerbose () | |
isVeryVerbose () | |
isDebug () | |
writeln ($messages, $type=self::OUTPUT_NORMAL) | |
write ($messages, $newline=false, $type=self::OUTPUT_NORMAL) | |
Protected Member Functions | |
doWrite ($message, $newline) | |
Private Attributes | |
$verbosity | |
$formatter | |
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 |
Base class for output classes.
There are five levels of verbosity:
Definition at line 32 of file Output.php.
__construct | ( | $verbosity = self::VERBOSITY_NORMAL , |
|
$decorated = false , |
|||
OutputFormatterInterface | $formatter = null |
||
) |
Constructor.
int | $verbosity | The verbosity level (one of the VERBOSITY constants in OutputInterface) |
bool | $decorated | Whether to decorate messages |
OutputFormatterInterface | null | $formatter | Output formatter instance (null to use default OutputFormatter) |
Definition at line 46 of file Output.php.
References Output\$formatter, and Output\$verbosity.
|
abstractprotected |
Writes a message to the output.
string | $message | A message to write to the output |
bool | $newline | Whether to add a newline or not |
Referenced by Output\write().
getFormatter | ( | ) |
{Returns current output formatter instance.
Implements OutputInterface.
Definition at line 64 of file Output.php.
References Output\$formatter.
Referenced by ConsoleOutput\__construct().
getVerbosity | ( | ) |
{Gets the current verbosity of the output.
Implements OutputInterface.
Definition at line 96 of file Output.php.
References Output\$verbosity.
isDebug | ( | ) |
Definition at line 116 of file Output.php.
References Output\$verbosity.
isDecorated | ( | ) |
{Gets the decorated flag.
Implements OutputInterface.
Definition at line 80 of file Output.php.
isQuiet | ( | ) |
Definition at line 101 of file Output.php.
References Output\$verbosity.
isVerbose | ( | ) |
Definition at line 106 of file Output.php.
References Output\$verbosity.
isVeryVerbose | ( | ) |
Definition at line 111 of file Output.php.
References Output\$verbosity.
setDecorated | ( | $decorated | ) |
{Sets the decorated flag.
bool | $decorated | Whether to decorate the messages |
Implements OutputInterface.
Definition at line 72 of file Output.php.
setFormatter | ( | OutputFormatterInterface | $formatter | ) |
{Sets output formatter.
OutputFormatterInterface | $formatter |
Implements OutputInterface.
Definition at line 56 of file Output.php.
References Output\$formatter.
setVerbosity | ( | $level | ) |
{Sets the verbosity of the output.
int | $level | The level of verbosity (one of the VERBOSITY constants) |
Implements OutputInterface.
Definition at line 88 of file Output.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 132 of file Output.php.
References Output\doWrite(), OutputInterface\OUTPUT_NORMAL, OutputInterface\OUTPUT_PLAIN, and OutputInterface\OUTPUT_RAW.
Referenced by Output\writeln().
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 124 of file Output.php.
References Output\write().
|
private |
Definition at line 35 of file Output.php.
Referenced by Output\__construct(), StreamOutput\__construct(), ConsoleOutput\__construct(), Output\getFormatter(), and Output\setFormatter().
|
private |
Definition at line 34 of file Output.php.
Referenced by Output\__construct(), ConsoleOutput\__construct(), StreamOutput\__construct(), Output\getVerbosity(), Output\isDebug(), Output\isQuiet(), Output\isVerbose(), and Output\isVeryVerbose().