| 1 | <?php |
||
| 8 | class Session { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Adicina o alerta no container |
||
| 12 | * @param Alert $alert |
||
| 13 | */ |
||
| 14 | public static function addAlert(Alert $alert) { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Mostra todos os alertas criados |
||
| 20 | * E remove os alertas da SESSAO |
||
| 21 | */ |
||
| 22 | public static function showAlerts() { |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Retorna array de alertas da Sessao |
||
| 31 | * @return Alert[] |
||
| 32 | */ |
||
| 33 | public static function getAlerts() { |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Retorna TRUE se possui algum alert |
||
| 42 | * @return boolean |
||
| 43 | */ |
||
| 44 | public static function hasAlert() { |
||
| 47 | |||
| 48 | } |
||
| 49 |