1 | <?php |
||
46 | class DashboardManager implements IDashboardManager { |
||
47 | |||
48 | |||
49 | /** @var IWidgetsService */ |
||
50 | private $widgetsService; |
||
51 | |||
52 | /** @var IEventsService */ |
||
53 | private $eventsService; |
||
54 | |||
55 | |||
56 | /** |
||
57 | * @param IEventsService $eventsService |
||
58 | */ |
||
59 | public function registerEventsService(IEventsService $eventsService) { |
||
62 | |||
63 | |||
64 | /** |
||
65 | * @param IWidgetsService $widgetsService |
||
66 | */ |
||
67 | public function registerWidgetsService(IWidgetsService $widgetsService) { |
||
70 | |||
71 | |||
72 | /** |
||
73 | * @param string $widgetId |
||
74 | * @param string $userId |
||
75 | * |
||
76 | * @return IWidgetConfig |
||
77 | * @throws DashboardAppNotAvailableException |
||
78 | */ |
||
79 | public function getWidgetConfig(string $widgetId, string $userId): IWidgetConfig { |
||
82 | |||
83 | |||
84 | /** |
||
85 | * @param string $widgetId |
||
86 | * @param array $users |
||
87 | * @param array $payload |
||
88 | * @param string $uniqueId |
||
89 | * |
||
90 | * @throws DashboardAppNotAvailableException |
||
91 | */ |
||
92 | public function createUsersEvent(string $widgetId, array $users, array $payload, string $uniqueId = '') { |
||
95 | |||
96 | |||
97 | /** |
||
98 | * @param string $widgetId |
||
99 | * @param array $groups |
||
100 | * @param array $payload |
||
101 | * @param string $uniqueId |
||
102 | * |
||
103 | * @throws DashboardAppNotAvailableException |
||
104 | */ |
||
105 | public function createGroupsEvent(string $widgetId, array $groups, array $payload, string $uniqueId = '') { |
||
108 | |||
109 | |||
110 | /** |
||
111 | * @param string $widgetId |
||
112 | * @param array $payload |
||
113 | * @param string $uniqueId |
||
114 | * |
||
115 | * @throws DashboardAppNotAvailableException |
||
116 | */ |
||
117 | public function createGlobalEvent(string $widgetId, array $payload, string $uniqueId = '') { |
||
120 | |||
121 | |||
122 | /** |
||
123 | * @return IWidgetsService |
||
124 | * @throws DashboardAppNotAvailableException |
||
125 | */ |
||
126 | private function getWidgetsService() { |
||
133 | |||
134 | |||
135 | /** |
||
136 | * @return IEventsService |
||
137 | * @throws DashboardAppNotAvailableException |
||
138 | */ |
||
139 | private function getEventsService() { |
||
146 | |||
147 | } |
||
148 | |||
149 |