\Fuman_System_Messages

Container messages to show the user a status of an action which he has executed.

Summary

Methods
Properties
Constants
__construct()
addMessage()
addHTMLMessage()
hideMessage()
hasMessages()
getMessages()
No public properties found
TYPE_ERROR
TYPE_SUCCESS
TYPE_NOTIFICATION
SESSION_CONTAINER_NAME
_addMessage()
_getSessionContainer()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

TYPE_ERROR

TYPE_ERROR

Message of type error

TYPE_SUCCESS

TYPE_SUCCESS

Message of type success

TYPE_NOTIFICATION

TYPE_NOTIFICATION

Message of type notification

SESSION_CONTAINER_NAME

SESSION_CONTAINER_NAME

Session container name

Methods

__construct()

__construct() 

Constructor

addMessage()

addMessage(string  $type, string  $text, boolean  $interactive = false) : object

Adds a message

Parameters

string $type
string $text
boolean $interactive

Is this an interactive message

Returns

object

addHTMLMessage()

addHTMLMessage(integer  $type, string  $html, boolean  $interactive = false) : object

Adds HTML message

Parameters

integer $type
string $html
boolean $interactive

Is this an interactive message

Returns

object

hideMessage()

hideMessage(mixed  $message) 

Set disabled

Parameters

mixed $message

hasMessages()

hasMessages() : boolean

Are any messages available

Returns

boolean

getMessages()

getMessages(boolean  $deleteMessage = false) : array

Gets messages

Parameters

boolean $deleteMessage

Returns

array

_addMessage()

_addMessage(integer  $type, string  $text, boolean  $interactive = false, boolean  $isHtml = false) : object

Adds message

Parameters

integer $type
string $text
boolean $interactive

Is this an interactive message

boolean $isHtml

Returns

object

_getSessionContainer()

_getSessionContainer() : \stdClass

Gets the sessionContainer Creates message-array if it does not exist

Returns

\stdClass