PHP Class Neos\Flow\Cli\Response

Inheritance: extends Neos\Flow\Mvc\Response
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

getExitCode() public méthode

Gets the numerical exit code which should be returned when exiting this application.
public getExitCode ( ) : integer
Résultat integer

getOutputFormat() public méthode

Returns the currently set output format.
public getOutputFormat ( ) : integer
Résultat integer One of the OUTPUTFORMAT_* constants

hasColorSupport() public méthode

Regardless of this setting content will only be styled with output format set to "styled".
public hasColorSupport ( ) : boolean
Résultat boolean TRUE if the terminal support ANSI colors, otherwise FALSE

send() public méthode

Sends the response
public send ( ) : void
Résultat void

setColorSupport() public méthode

Sets color support / styled output to yes, no or auto detection
public setColorSupport ( boolean $colorSupport ) : void
$colorSupport boolean TRUE, FALSE or NULL (= autodetection)
Résultat void

setExitCode() public méthode

Sets the numerical exit code which should be returned when exiting this application.
public setExitCode ( integer $exitCode ) : void
$exitCode integer
Résultat void

setOutputFormat() public méthode

Sets the desired output format.
public setOutputFormat ( integer $outputFormat ) : void
$outputFormat integer One of the OUTPUTFORMAT_* constants
Résultat void