Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (?int $verbosity=self::VERBOSITY_NORMAL, bool $decorated=false, OutputFormatterInterface $formatter=null) | |
setFormatter (OutputFormatterInterface $formatter) | |
getFormatter () | |
setDecorated (bool $decorated) | |
isDecorated () | |
setVerbosity (int $level) | |
getVerbosity () | |
isQuiet () | |
isVerbose () | |
isVeryVerbose () | |
isDebug () | |
writeln ($messages, int $options=self::OUTPUT_NORMAL) | |
write ($messages, bool $newline=false, int $options=self::OUTPUT_NORMAL) | |
Fonctions membres protégées | |
doWrite (string $message, bool $newline) | |
Attributs privés | |
$verbosity | |
$formatter | |
Membres hérités additionnels | |
Champs de données hérités de OutputInterface | |
const | VERBOSITY_QUIET = 16 |
const | VERBOSITY_NORMAL = 32 |
const | VERBOSITY_VERBOSE = 64 |
const | VERBOSITY_VERY_VERBOSE = 128 |
const | VERBOSITY_DEBUG = 256 |
const | OUTPUT_NORMAL = 1 |
const | OUTPUT_RAW = 2 |
const | OUTPUT_PLAIN = 4 |
Base class for output classes.
There are five levels of verbosity:
__construct | ( | ?int | $verbosity = self::VERBOSITY_NORMAL , |
bool | $decorated = false , |
||
OutputFormatterInterface | $formatter = null |
||
) |
int | null | $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) |
Références Output\$formatter, et Output\$verbosity.
|
abstractprotected |
Writes a message to the output.
Référencé par Output\write().
getFormatter | ( | ) |
{Returns current output formatter instance.
Implémente OutputInterface.
Références Output\$formatter.
Référencé par ConsoleOutput\__construct(), ConsoleSectionOutput\getDisplayLength(), et ConsoleOutput\section().
getVerbosity | ( | ) |
{Gets the current verbosity of the output.
Implémente OutputInterface.
Références Output\$verbosity.
Référencé par ConsoleOutput\section(), et Output\write().
isDebug | ( | ) |
{Returns whether verbosity is debug (-vvv).
Implémente OutputInterface.
Références Output\$verbosity.
isDecorated | ( | ) |
{Gets the decorated flag.
Implémente OutputInterface.
Référencé par ConsoleOutput\__construct(), ConsoleSectionOutput\clear(), ConsoleSectionOutput\doWrite(), et ConsoleOutput\section().
isQuiet | ( | ) |
{Returns whether verbosity is quiet (-q).
Implémente OutputInterface.
Références Output\$verbosity.
isVerbose | ( | ) |
{Returns whether verbosity is verbose (-v).
Implémente OutputInterface.
Références Output\$verbosity.
isVeryVerbose | ( | ) |
{Returns whether verbosity is very verbose (-vv).
Implémente OutputInterface.
Références Output\$verbosity.
setDecorated | ( | bool | $decorated | ) |
{Sets the decorated flag.}
Implémente OutputInterface.
setFormatter | ( | OutputFormatterInterface | $formatter | ) |
setVerbosity | ( | int | $level | ) |
{Sets the verbosity of the output.}
Implémente OutputInterface.
write | ( | $messages, | |
bool | $newline = false , |
||
int | $options = self::OUTPUT_NORMAL |
||
) |
{Writes a message to the output.
string | iterable | $messages | The message as an iterable of strings or a single string |
bool | $newline | Whether to add a newline |
int | $options | A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL |
Implémente OutputInterface.
Références $message, $messages, $options, $type, Output\$verbosity, Output\doWrite(), Output\getVerbosity(), OutputInterface\OUTPUT_NORMAL, OutputInterface\OUTPUT_PLAIN, et OutputInterface\OUTPUT_RAW.
Référencé par Output\writeln().
writeln | ( | $messages, | |
int | $options = self::OUTPUT_NORMAL |
||
) |
{Writes a message to the output and adds a newline at the end.
string | iterable | $messages | The message as an iterable of strings or a single string |
int | $options | A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL |
Implémente OutputInterface.
Références $messages, $options, et Output\write().
Référencé par ConsoleSectionOutput\overwrite().
|
private |
|
private |