| @@ 65-71 (lines=7) @@ | ||
| 62 | * |
|
| 63 | * @return Entities\IMessage |
|
| 64 | */ |
|
| 65 | public function success($message, $title = NULL) |
|
| 66 | { |
|
| 67 | $args = func_get_args(); |
|
| 68 | array_splice($args, 1, 0, ['success']); |
|
| 69 | ||
| 70 | return call_user_func_array([$this, 'setMessage'], $args); |
|
| 71 | } |
|
| 72 | ||
| 73 | /** |
|
| 74 | * Flash an information message |
|
| @@ 81-87 (lines=7) @@ | ||
| 78 | * |
|
| 79 | * @return Entities\IMessage |
|
| 80 | */ |
|
| 81 | public function info($message, $title = NULL) |
|
| 82 | { |
|
| 83 | $args = func_get_args(); |
|
| 84 | array_splice($args, 1, 0, ['info']); |
|
| 85 | ||
| 86 | return call_user_func_array([$this, 'setMessage'], $args); |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * Flash a warning message |
|
| @@ 97-103 (lines=7) @@ | ||
| 94 | * |
|
| 95 | * @return Entities\IMessage |
|
| 96 | */ |
|
| 97 | public function warning($message, $title = NULL) |
|
| 98 | { |
|
| 99 | $args = func_get_args(); |
|
| 100 | array_splice($args, 1, 0, ['warning']); |
|
| 101 | ||
| 102 | return call_user_func_array([$this, 'setMessage'], $args); |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * Flash an error message |
|
| @@ 113-119 (lines=7) @@ | ||
| 110 | * |
|
| 111 | * @return Entities\IMessage |
|
| 112 | */ |
|
| 113 | public function error($message, $title = NULL) |
|
| 114 | { |
|
| 115 | $args = func_get_args(); |
|
| 116 | array_splice($args, 1, 0, ['danger']); |
|
| 117 | ||
| 118 | return call_user_func_array([$this, 'setMessage'], $args); |
|
| 119 | } |
|
| 120 | ||
| 121 | /** |
|
| 122 | * Add an "important" flash to the session |
|