PHP Класс Resque\Helpers\CatchOutput

Автор: Michael Haynes ([email protected])
Наследование: extends Symfony\Component\Console\Output\Output
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$written Stored output string

Открытые методы

Метод Описание
__construct ( integer $verbosity = self::VERBOSITY_NORMAL, boolean $decorated = true, Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter = null ) Constructor.
write ( string | array $messages, boolean $newline = false, integer $type = self::OUTPUT_RAW ) Writes a message to the output.
written ( ) : string Returns written string so far

Защищенные методы

Метод Описание
doWrite ( string $message, boolean $newline ) Stores message in a local string

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( integer $verbosity = self::VERBOSITY_NORMAL, boolean $decorated = true, Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter = null )
$verbosity integer The verbosity level (one of the VERBOSITY constants in OutputInterface)
$decorated boolean Whether to decorate messages
$formatter Symfony\Component\Console\Formatter\OutputFormatterInterface Output formatter instance (null to use default OutputFormatter)

doWrite() защищенный Метод

Stores message in a local string
protected doWrite ( string $message, boolean $newline )
$message string A message to write to the output
$newline boolean Whether to add a newline or not

write() публичный Метод

Writes a message to the output.
public write ( string | array $messages, boolean $newline = false, integer $type = self::OUTPUT_RAW )
$messages string | array The message as an array of lines or a single string
$newline boolean Whether to add a newline
$type integer The type of output (one of the OUTPUT constants)

written() публичный Метод

Returns written string so far
public written ( ) : string
Результат string

Описание свойств

$written защищенное свойство

Stored output string
protected $written