SimpleConsole
in package
implements
ReporterInterface
Uses
ReporterTrait
simple text reporter.
Tags
Interfaces, Classes and Traits
- ReporterInterface
- interface for classes used as reporter for installation or check etc... This classes are responsible to show informations to the user.
Table of Contents
- $level : string
- $title : mixed
- $messageCounter : mixed
- __construct() : mixed
- end() : mixed
- called when the installation is finished.
- getMessageCounter() : mixed
- message() : mixed
- displays a message.
- resetMessageCounter() : mixed
- start() : mixed
- start the process.
- addMessageType() : mixed
Properties
$level
protected
string
$level
error, notice or warning
Tags
$title
protected
mixed
$title
= ''
Tags
$messageCounter
private
mixed
$messageCounter
= array()
Tags
Methods
__construct()
public
__construct([mixed $level = 'notice' ][, mixed $title = 'Installation' ]) : mixed
Parameters
- $level : mixed = 'notice'
- $title : mixed = 'Installation'
Tags
Return values
mixed —end()
called when the installation is finished.
public
end() : mixed
Tags
Return values
mixed —getMessageCounter()
public
getMessageCounter(mixed $type) : mixed
Parameters
- $type : mixed
Tags
Return values
mixed —message()
displays a message.
public
message(string $message[, string $type = '' ]) : mixed
Parameters
- $message : string
-
the message to display
- $type : string = ''
-
the type of the message : 'error', 'notice', 'warning', ''
Tags
Return values
mixed —resetMessageCounter()
public
resetMessageCounter() : mixed
Tags
Return values
mixed —start()
start the process.
public
start() : mixed
Tags
Return values
mixed —addMessageType()
protected
addMessageType(mixed $type) : mixed
Parameters
- $type : mixed