1 | <?php |
||
26 | class NotificationsToolbarItem implements ToolbarItemInterface |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * @var ObjectManager |
||
31 | */ |
||
32 | protected $objectManager; |
||
33 | |||
34 | /** |
||
35 | * @var HubicService |
||
36 | */ |
||
37 | protected $hubicService; |
||
38 | |||
39 | public function __construct() |
||
45 | |||
46 | /** |
||
47 | * Checks whether the user has access to this toolbar item |
||
48 | * |
||
49 | * @return bool TRUE if user has access, FALSE if not |
||
50 | */ |
||
51 | public function checkAccess(): bool |
||
55 | |||
56 | /** |
||
57 | * Render "item" part of this toolbar |
||
58 | * |
||
59 | * @return string Toolbar item HTML |
||
60 | */ |
||
61 | public function getItem(): string |
||
65 | |||
66 | /** |
||
67 | * Returns a new standalone view, shorthand function |
||
68 | * |
||
69 | * @param string $filename Which templateFile should be used. |
||
70 | * |
||
71 | * @return StandaloneView |
||
72 | */ |
||
73 | protected function getFluidTemplateObject(string $filename): StandaloneView |
||
85 | |||
86 | /** |
||
87 | * TRUE if this toolbar item has a collapsible drop down |
||
88 | * |
||
89 | * @return bool |
||
90 | */ |
||
91 | public function hasDropDown(): bool |
||
95 | |||
96 | /** |
||
97 | * Render "drop down" part of this toolbar |
||
98 | * |
||
99 | * @return string Drop down HTML |
||
100 | */ |
||
101 | public function getDropDown(): string |
||
108 | |||
109 | /** |
||
110 | * Returns an array with additional attributes added to containing <li> tag of the item. |
||
111 | * |
||
112 | * Typical usages are additional css classes and data-* attributes, classes may be merged |
||
113 | * with other classes needed by the framework. Do NOT set an id attribute here. |
||
114 | * |
||
115 | * array( |
||
116 | * 'class' => 'my-class', |
||
117 | * 'data-foo' => '42', |
||
118 | * ) |
||
119 | * |
||
120 | * @return array List item HTML attributes |
||
121 | */ |
||
122 | public function getAdditionalAttributes(): array |
||
126 | |||
127 | /** |
||
128 | * Returns an integer between 0 and 100 to determine |
||
129 | * the position of this item relative to others |
||
130 | * |
||
131 | * By default, extensions should return 50 to be sorted between main core |
||
132 | * items and other items that should be on the very right. |
||
133 | * |
||
134 | * @return int 0 .. 100 |
||
135 | */ |
||
136 | public function getIndex(): int |
||
140 | } |
||
141 |