Rev 1086 | Rev 1171 | Go to most recent revision | 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 OIDplusPageAdminLogEvents extends OIDplusPagePluginAdmin { |
26 | class OIDplusPageAdminLogEvents extends OIDplusPagePluginAdmin { |
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 string $id |
|
- | 37 | * @param array $out |
|
- | 38 | * @param bool $handled |
|
- | 39 | * @return void |
|
- | 40 | * @throws OIDplusException |
|
- | 41 | */ |
|
31 | public function gui($id, &$out, &$handled) { |
42 | public function gui(string $id, array &$out, bool &$handled) { |
32 | if ($id == 'oidplus:system_log') { |
43 | if ($id == 'oidplus:system_log') { |
33 | $handled = true; |
44 | $handled = true; |
34 | $out['title'] = _L('All log messages'); |
45 | $out['title'] = _L('All log messages'); |
35 | $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png' : ''; |
46 | $out['icon'] = file_exists(__DIR__.'/img/main_icon.png') ? OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon.png' : ''; |
36 | 47 | ||
Line 76... | Line 87... | ||
76 | // TODO: List logs in a table instead of a <pre> text |
87 | // TODO: List logs in a table instead of a <pre> text |
77 | // TODO: Load only X events and then re-load new events via AJAX when the user scrolls down |
88 | // TODO: Load only X events and then re-load new events via AJAX when the user scrolls down |
78 | } |
89 | } |
79 | } |
90 | } |
80 | 91 | ||
- | 92 | /** |
|
- | 93 | * @param array $json |
|
- | 94 | * @param string|null $ra_email |
|
- | 95 | * @param bool $nonjs |
|
- | 96 | * @param string $req_goto |
|
- | 97 | * @return bool |
|
- | 98 | * @throws OIDplusException |
|
- | 99 | */ |
|
81 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
100 | public function tree(array &$json, string $ra_email=null, bool $nonjs=false, string $req_goto=''): bool { |
82 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
101 | if (!OIDplus::authUtils()->isAdminLoggedIn()) return false; |
83 | 102 | ||
84 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
103 | if (file_exists(__DIR__.'/img/main_icon16.png')) { |
85 | $tree_icon = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon16.png'; |
104 | $tree_icon = OIDplus::webpath(__DIR__,OIDplus::PATH_RELATIVE).'img/main_icon16.png'; |
86 | } else { |
105 | } else { |
Line 94... | Line 113... | ||
94 | ); |
113 | ); |
95 | 114 | ||
96 | return true; |
115 | return true; |
97 | } |
116 | } |
98 | 117 | ||
- | 118 | /** |
|
- | 119 | * @param string $request |
|
- | 120 | * @return array|false |
|
- | 121 | */ |
|
99 | public function tree_search($request) { |
122 | public function tree_search(string $request) { |
100 | return false; |
123 | return false; |
101 | } |
124 | } |
102 | } |
125 | } |
103 | 126 |