TYPO3  7.6
Public Member Functions | List of all members
NullOutput Class Reference
Inheritance diagram for NullOutput:
OutputInterface

Public Member Functions

 setFormatter (OutputFormatterInterface $formatter)
 
 getFormatter ()
 
 setDecorated ($decorated)
 
 isDecorated ()
 
 setVerbosity ($level)
 
 getVerbosity ()
 
 isQuiet ()
 
 isVerbose ()
 
 isVeryVerbose ()
 
 isDebug ()
 
 writeln ($messages, $type=self::OUTPUT_NORMAL)
 
 write ($messages, $newline=false, $type=self::OUTPUT_NORMAL)
 

Additional Inherited Members

- Public Attributes inherited from OutputInterface
const VERBOSITY_QUIET = 0
 
const VERBOSITY_NORMAL = 1
 
const VERBOSITY_VERBOSE = 2
 
const VERBOSITY_VERY_VERBOSE = 3
 
const VERBOSITY_DEBUG = 4
 
const OUTPUT_NORMAL = 0
 
const OUTPUT_RAW = 1
 
const OUTPUT_PLAIN = 2
 

Detailed Description

NullOutput suppresses all output.

$output = new NullOutput();
Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com
Tobias Schultze http://tobion.de

Definition at line 27 of file NullOutput.php.

Member Function Documentation

getFormatter ( )

{Returns current output formatter instance.

Returns
OutputFormatterInterface
}

Implements OutputInterface.

Definition at line 40 of file NullOutput.php.

getVerbosity ( )

{Gets the current verbosity of the output.

Returns
int The current level of verbosity (one of the VERBOSITY constants)
}

Implements OutputInterface.

Definition at line 73 of file NullOutput.php.

isDebug ( )

Definition at line 93 of file NullOutput.php.

isDecorated ( )

{Gets the decorated flag.

Returns
bool true if the output will decorate messages, false otherwise
}

Implements OutputInterface.

Definition at line 57 of file NullOutput.php.

isQuiet ( )

Definition at line 78 of file NullOutput.php.

isVerbose ( )

Definition at line 83 of file NullOutput.php.

isVeryVerbose ( )

Definition at line 88 of file NullOutput.php.

setDecorated (   $decorated)

{Sets the decorated flag.

Parameters
bool$decoratedWhether to decorate the messages
}

Implements OutputInterface.

Definition at line 49 of file NullOutput.php.

setFormatter ( OutputFormatterInterface  $formatter)

{Sets output formatter.

Parameters
OutputFormatterInterface$formatter
}

Implements OutputInterface.

Definition at line 32 of file NullOutput.php.

setVerbosity (   $level)

{Sets the verbosity of the output.

Parameters
int$levelThe level of verbosity (one of the VERBOSITY constants)
}

Implements OutputInterface.

Definition at line 65 of file NullOutput.php.

write (   $messages,
  $newline = false,
  $type = self::OUTPUT_NORMAL 
)

{Writes a message to the output.

Parameters
string | array$messagesThe message as an array of lines or a single string
bool$newlineWhether to add a newline
int$typeThe type of output (one of the OUTPUT constants)
Exceptions
\InvalidArgumentExceptionWhen unknown output type is given
}

Implements OutputInterface.

Definition at line 109 of file NullOutput.php.

writeln (   $messages,
  $type = self::OUTPUT_NORMAL 
)

{Writes a message to the output and adds a newline at the end.

Parameters
string | array$messagesThe message as an array of lines of a single string
int$typeThe type of output (one of the OUTPUT constants)
Exceptions
\InvalidArgumentExceptionWhen unknown output type is given
}

Implements OutputInterface.

Definition at line 101 of file NullOutput.php.