MIOLO25
|
Membros públicos | |
__construct ($message, $type=self::TYPE_INFORMATION, $display=true, $msgContainer=self::MSG_CONTAINER_ID, $animate=true) | |
Membros públicos estáticos | |
static | getMessageSession () |
static | clearLastMessage () |
static | getStaticMessage ($name, $message, $type=self::TYPE_SUCCESS) |
static | getMessageContainer () |
Campos de Dados | |
const | TYPE_SUCCESS = 'Success' |
const | TYPE_INFORMATION = 'Information' |
const | TYPE_WARNING = 'Warning' |
const | TYPE_ERROR = 'Error' |
const | CSS_CLASS = 'mMessage mMessage' |
const | MSG_CONTAINER_ID = 'messageDiv' |
const | MSG_DIV_ID = 'mainMessageDiv' |
__construct | ( | $message, | |
$type = self::TYPE_INFORMATION, | |||
$display = true, | |||
$msgContainer = self::MSG_CONTAINER_ID, | |||
$animate = true ) |
Returns a message, formated according the type.
(string) | $mensagem Message to show |
(string) | $type Message type, TYPE_INFORMATION, TYPE_WARNING or TYPE_ERROR |
(boolean) | $display Defines if the message will be displayed, otherwise, message is registered in session to be displayed on the next event |
(string) | $msgContainer Id of the div/container where the message will be displayed |
(boolean) | $animate Sets if the message must be animated |
|
static |
Clear the last registered message in session
|
static |
|
static |
Returns session object that could have messages
|
static |
Returns a div with a message to be usesd statically
const CSS_CLASS = 'mMessage mMessage' |
const MSG_CONTAINER_ID = 'messageDiv' |
const MSG_DIV_ID = 'mainMessageDiv' |
const TYPE_ERROR = 'Error' |
const TYPE_INFORMATION = 'Information' |
const TYPE_SUCCESS = 'Success' |
const TYPE_WARNING = 'Warning' |