1 | <?php |
||
14 | class Metadata extends Module |
||
15 | { |
||
16 | /** |
||
17 | * array of the dashboard |
||
18 | * |
||
19 | * @var array |
||
20 | */ |
||
21 | |||
22 | protected static $_dashboardArray = []; |
||
23 | |||
24 | /** |
||
25 | * array of the notification |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | |||
30 | protected static $_notificationArray = []; |
||
31 | |||
32 | /** |
||
33 | * get the dashboard array |
||
34 | * |
||
35 | * @since 4.1.0 |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | |||
40 | public function getDashboardArray() : array |
||
44 | |||
45 | /** |
||
46 | * get the notification array |
||
47 | * |
||
48 | * @since 4.1.0 |
||
49 | * |
||
50 | * @return array |
||
51 | */ |
||
52 | |||
53 | public function getNotificationArray() : array |
||
57 | |||
58 | /** |
||
59 | * set the dashboard |
||
60 | * |
||
61 | * @since 4.1.0 |
||
62 | * |
||
63 | * @param string $content content of the dashboard |
||
64 | * @param int $column column of the dashboard |
||
65 | */ |
||
66 | |||
67 | public function setDashboard(string $content = null, int $column = 1) : void |
||
76 | |||
77 | /** |
||
78 | * set the notification |
||
79 | * |
||
80 | * @since 4.1.0 |
||
81 | * |
||
82 | * @param string $type type of the notification |
||
83 | * @param string|array $message message of the notification |
||
84 | */ |
||
85 | |||
86 | public function setNotification(string $type = null, $message = null) : void |
||
91 | |||
92 | /** |
||
93 | * clear the dashboard array |
||
94 | * |
||
95 | * @since 4.1.0 |
||
96 | */ |
||
97 | |||
98 | public function clearDashboard() : void |
||
103 | |||
104 | /** |
||
105 | * clear the notification array |
||
106 | * |
||
107 | * @since 4.1.0 |
||
108 | * |
||
109 | * @param string $type type of the notification |
||
110 | */ |
||
111 | |||
112 | public function clearNotification(string $type = null) : void |
||
117 | } |
||
118 |