Back to Joomla project (class list)

Class CliOutput - list of methods

Base class defining a command line output handler

Direct known subclasses

Package: Joomla\CMS\Application\CLI
Copyright: (C) 2014 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Application/CLI/CliOutput.php
Project: Joomla

Method Summary

public
(\Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterface $processor = null)

Constructor
Parameters
  • \Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterface $processor The output processor.
Since
  • 4.0.0
Show source code of this method: __construct Source Code

public $this
(\Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterface $processor)

Set a processor
Parameters
  • \Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterface $processor The output processor.
Returns
  • $this
Since
  • 4.0.0
Show source code of this method: setProcessor Source Code

public \Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterface
()

Get a processor
Returns
  • \Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterface
Since
  • 4.0.0
-
  • \RuntimeException
Show source code of this method: getProcessor Source Code

public $this
(mixed $text = '', mixed $nl = true)

Write a string to an output handler.
Parameters
  • string $text The text to display.
  • bool $nl True (default) to append a new line at the end of the output string.
Returns
  • $this
Since
  • 4.0.0
-
Show source code of this method: out Source Code

Properties Summary

protected \Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterface
$processor
Output processing object
Since
  • 4.0.0

Tags Summary

Since
4.0.0
Deprecated
5.0
Use the `joomla/console` package instead