Свойство | Тип | Описание | |
---|---|---|---|
$types | list of messages types |
Метод | Описание | |
---|---|---|
addError ( string $message, variadic |
Add error | |
addNotice ( string $message, variadic |
Add notice | |
addSuccess ( string $message, variadic |
Add success | |
count ( ) : integer | Get size of messages container | |
pop ( string $type = null ) : stdClass | null | Pop a message | |
popAll ( ) : array | Pop all messages | |
reset ( ) : void | Reset messages |
Метод | Описание | |
---|---|---|
add ( string $type, string $message, variadic |
Add message to container | |
createEmptyMessagesStore ( ) : ArrayObject | Creates a new empty store for messages | |
getMessagesStore ( ) : ArrayObject | null | Returns current messages store | |
init ( ) : |
Initialize Messages container |
public addSuccess ( string $message, variadic |
||
$message | string | |
$text | variadic |
|
Результат | void |
protected createEmptyMessagesStore ( ) : ArrayObject | ||
Результат | ArrayObject |
protected getMessagesStore ( ) : ArrayObject | null | ||
Результат | ArrayObject | null | Returns null if store not exists yet |
protected init ( ) : |
||
Результат |