[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/symfony/console/Output/ -> ConsoleOutput.php (summary)

(no description)

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

Defines 1 class

ConsoleOutput:: (12 methods):
  __construct()
  section()
  setDecorated()
  setFormatter()
  setVerbosity()
  getErrorOutput()
  setErrorOutput()
  hasStdoutSupport()
  hasStderrSupport()
  isRunningOS400()
  openOutputStream()
  openErrorStream()


Class: ConsoleOutput  - X-Ref

ConsoleOutput is the default class for all CLI output. It uses STDOUT and STDERR.

This class is a convenient wrapper around `StreamOutput` for both STDOUT and STDERR.

$output = new ConsoleOutput();

This is equivalent to:

$output = new StreamOutput(fopen('php://stdout', 'w'));
$stdErr = new StreamOutput(fopen('php://stderr', 'w'));

__construct(int $verbosity = self::VERBOSITY_NORMAL, bool $decorated = null, OutputFormatterInterface $formatter = null)   X-Ref

param: int                           $verbosity The verbosity level (one of the VERBOSITY constants in OutputInterface)
param: bool|null                     $decorated Whether to decorate messages (null for auto-guessing)
param: OutputFormatterInterface|null $formatter Output formatter instance (null to use default OutputFormatter)

section()   X-Ref
Creates a new output section.


setDecorated(bool $decorated)   X-Ref
{@inheritdoc}


setFormatter(OutputFormatterInterface $formatter)   X-Ref
{@inheritdoc}


setVerbosity(int $level)   X-Ref
{@inheritdoc}


getErrorOutput()   X-Ref
{@inheritdoc}


setErrorOutput(OutputInterface $error)   X-Ref
{@inheritdoc}


hasStdoutSupport()   X-Ref
Returns true if current environment supports writing console output to
STDOUT.

return: bool

hasStderrSupport()   X-Ref
Returns true if current environment supports writing console output to
STDERR.

return: bool

isRunningOS400()   X-Ref
Checks if current executing environment is IBM iSeries (OS400), which
doesn't properly convert character-encodings between ASCII to EBCDIC.


openOutputStream()   X-Ref

return: resource

openErrorStream()   X-Ref

return: resource



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer