Rev 1086 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1086 | Rev 1116 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | \defined('INSIDE_OIDPLUS') or die; |
23 | \defined('INSIDE_OIDPLUS') or die; |
24 | // phpcs:enable PSR1.Files.SideEffects |
24 | // phpcs:enable PSR1.Files.SideEffects |
25 | 25 | ||
26 | class OIDplusPageRaNotifications extends OIDplusPagePluginRa { |
26 | class OIDplusPageRaNotifications extends OIDplusPagePluginRa { |
27 | 27 | ||
- | 28 | /** |
|
- | 29 | * @param bool $html |
|
- | 30 | * @return void |
|
- | 31 | */ |
|
28 | public function init($html=true) { |
32 | public function init(bool $html=true) { |
29 | } |
33 | } |
30 | 34 | ||
- | 35 | /** |
|
- | 36 | * @param array $json |
|
- | 37 | * @param string|null $ra_email |
|
- | 38 | * @param bool $nonjs |
|
- | 39 | * @param string $req_goto |
|
- | 40 | * @return bool |
|
- | 41 | * @throws OIDplusException |
|
- | 42 | */ |
|
31 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
43 | public function tree(array &$json, string $ra_email=null, bool $nonjs=false, string $req_goto=''): bool { |
32 | if (!$ra_email) return false; |
44 | if (!$ra_email) return false; |
33 | if (!OIDplus::authUtils()->isRaLoggedIn($ra_email) && !OIDplus::authUtils()->isAdminLoggedIn()) return false; |
45 | if (!OIDplus::authUtils()->isRaLoggedIn($ra_email) && !OIDplus::authUtils()->isAdminLoggedIn()) return false; |
34 | if (is_null(OIDplus::getPluginByOid('1.3.6.1.4.1.37476.2.5.2.4.3.10'))) return false; // OIDplusPageAdminNotifications |
46 | if (is_null(OIDplus::getPluginByOid('1.3.6.1.4.1.37476.2.5.2.4.3.10'))) return false; // OIDplusPageAdminNotifications |
35 | 47 | ||
36 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
48 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
Line 46... | Line 58... | ||
46 | ); |
58 | ); |
47 | 59 | ||
48 | return true; |
60 | return true; |
49 | } |
61 | } |
50 | 62 | ||
- | 63 | /** |
|
- | 64 | * @param string $request |
|
- | 65 | * @return array|false |
|
- | 66 | */ |
|
51 | public function tree_search($request) { |
67 | public function tree_search(string $request) { |
52 | return false; |
68 | return false; |
53 | } |
69 | } |
54 | } |
70 | } |