1 | <?php |
||
7 | class AdminNoticeManager |
||
8 | { |
||
9 | protected static $instance = null; |
||
10 | protected static $notices = []; |
||
11 | |||
12 | const DEFAULT_OPTIONS = [ |
||
13 | 'type' => 'info', |
||
14 | 'title' => 'Flynt - Oops, something went wrong', |
||
15 | 'dismissible' => true, |
||
16 | 'filenames' => '' |
||
17 | ]; |
||
18 | |||
19 | public static function getInstance() |
||
26 | |||
27 | /** |
||
28 | * clone |
||
29 | * |
||
30 | * Prevent cloning with 'protected' keyword |
||
31 | **/ |
||
32 | protected function __clone() |
||
35 | |||
36 | /** |
||
37 | * constructor |
||
38 | * |
||
39 | * Prevent instantiation with 'protected' keyword |
||
40 | **/ |
||
41 | protected function __construct() |
||
44 | |||
45 | public function addNotice($messages = [], $options = []) |
||
80 | |||
81 | public function getAll() |
||
85 | } |
||
86 |