@@ 47-55 (lines=9) @@ | ||
44 | * |
|
45 | * @return object |
|
46 | */ |
|
47 | public static function get() |
|
48 | { |
|
49 | if (!isset(static::$data) && isset($_SESSION['flash'])) { |
|
50 | static::$data = (object)$_SESSION['flash']; |
|
51 | unset($_SESSION['flash']); |
|
52 | } |
|
53 | ||
54 | return static::$data; |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * Reissue the flash. |
|
@@ 60-67 (lines=8) @@ | ||
57 | /** |
|
58 | * Reissue the flash. |
|
59 | */ |
|
60 | public static function reissue() |
|
61 | { |
|
62 | if (!isset(static::$data) && isset($_SESSION['flash'])) { |
|
63 | static::$data = (object)$_SESSION['flash']; |
|
64 | } else { |
|
65 | $_SESSION['flash'] = static::$data; |
|
66 | } |
|
67 | } |
|
68 | ||
69 | /** |
|
70 | * Clear the flash. |