\Status

Manage status notices within the script.

Useful to keep the user alert of changes within the system

Summary

Methods
Properties
Constants
__construct()
add()
toString()
No public properties found
TYPE_NOTIFY
TYPE_ERROR
No protected methods found
No protected properties found
N/A
No private methods found
$messages
N/A

Constants

TYPE_NOTIFY

TYPE_NOTIFY

TYPE_ERROR

TYPE_ERROR

Properties

$messages

$messages : 

Type

Methods

__construct()

__construct() 

Creates a new task handler

add()

add(  $msg,   $type = \Status::S_NOTIFY) 

Add a message to the status list and specify its code.

Parameters

$msg

The status message

$type

The type of status this is. default is notify

toString()

toString() 

Returns an HTML container of all status messages.