PHP Класс Neos\Flow\Cli\Response

Наследование: extends Neos\Flow\Mvc\Response
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
getExitCode ( ) : integer Gets the numerical exit code which should be returned when exiting this application.
getOutputFormat ( ) : integer Returns the currently set output format.
hasColorSupport ( ) : boolean Tells if the response content should be styled on send().
send ( ) : void Sends the response
setColorSupport ( boolean $colorSupport ) : void Sets color support / styled output to yes, no or auto detection
setExitCode ( integer $exitCode ) : void Sets the numerical exit code which should be returned when exiting this application.
setOutputFormat ( integer $outputFormat ) : void Sets the desired output format.

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

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

Gets the numerical exit code which should be returned when exiting this application.
public getExitCode ( ) : integer
Результат integer

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

Returns the currently set output format.
public getOutputFormat ( ) : integer
Результат integer One of the OUTPUTFORMAT_* constants

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

Regardless of this setting content will only be styled with output format set to "styled".
public hasColorSupport ( ) : boolean
Результат boolean TRUE if the terminal support ANSI colors, otherwise FALSE

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

Sends the response
public send ( ) : void
Результат void

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

Sets color support / styled output to yes, no or auto detection
public setColorSupport ( boolean $colorSupport ) : void
$colorSupport boolean TRUE, FALSE or NULL (= autodetection)
Результат void

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

Sets the numerical exit code which should be returned when exiting this application.
public setExitCode ( integer $exitCode ) : void
$exitCode integer
Результат void

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

Sets the desired output format.
public setOutputFormat ( integer $outputFormat ) : void
$outputFormat integer One of the OUTPUTFORMAT_* constants
Результат void