Rev 1116 | Rev 1138 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1116 | Rev 1130 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | */ |
31 | */ |
32 | public function init(bool $html=true) { |
32 | public function init(bool $html=true) { |
33 | } |
33 | } |
34 | 34 | ||
35 | /** |
35 | /** |
36 | * @param $out |
36 | * @param array $out |
37 | * @return void |
37 | * @return void |
38 | */ |
38 | */ |
39 | private function pluginTableHead(&$out) { |
39 | private function pluginTableHead(array &$out) { |
40 | $out['text'] .= ' <tr>'; |
40 | $out['text'] .= ' <tr>'; |
41 | $out['text'] .= ' <th width="30%">'._L('Class name').'</th>'; |
41 | $out['text'] .= ' <th width="30%">'._L('Class name').'</th>'; |
42 | $out['text'] .= ' <th width="30%">'._L('Plugin name').'</th>'; |
42 | $out['text'] .= ' <th width="30%">'._L('Plugin name').'</th>'; |
43 | $out['text'] .= ' <th width="10%">'._L('Version').'</th>'; |
43 | $out['text'] .= ' <th width="10%">'._L('Version').'</th>'; |
44 | $out['text'] .= ' <th width="15%">'._L('Author').'</th>'; |
44 | $out['text'] .= ' <th width="15%">'._L('Author').'</th>'; |
45 | $out['text'] .= ' <th width="15%">'._L('License').'</th>'; |
45 | $out['text'] .= ' <th width="15%">'._L('License').'</th>'; |
46 | $out['text'] .= ' </tr>'; |
46 | $out['text'] .= ' </tr>'; |
47 | } |
47 | } |
48 | 48 | ||
49 | /** |
49 | /** |
50 | * @param $out |
50 | * @param array $out |
51 | * @param $plugin |
51 | * @param OIDplusPlugin $plugin |
52 | * @param $modifier |
52 | * @param int $modifier |
53 | * @param $na_reason |
53 | * @param string $na_reason |
54 | * @return void |
54 | * @return void |
55 | */ |
55 | */ |
56 | private function pluginTableLine(&$out, $plugin, $modifier=0, $na_reason='') { |
56 | private function pluginTableLine(array &$out, OIDplusPlugin $plugin, int $modifier=0, string $na_reason='') { |
57 | $html_reason = empty($na_reason) ? '' : ' ('.htmlentities($na_reason).')'; |
57 | $html_reason = empty($na_reason) ? '' : ' ('.htmlentities($na_reason).')'; |
58 | $out['text'] .= ' <tr>'; |
58 | $out['text'] .= ' <tr>'; |
59 | if ($modifier == 0) { |
59 | if ($modifier == 0) { |
60 | // normal line |
60 | // normal line |
61 | $out['text'] .= ' <td><a '.OIDplus::gui()->link('oidplus:system_plugins$'.get_class($plugin)).'>'.htmlentities(get_class($plugin)).'</a>'.$html_reason.'</td>'; |
61 | $out['text'] .= ' <td><a '.OIDplus::gui()->link('oidplus:system_plugins$'.get_class($plugin)).'>'.htmlentities(get_class($plugin)).'</a>'.$html_reason.'</td>'; |
Line 81... | Line 81... | ||
81 | * @throws OIDplusConfigInitializationException |
81 | * @throws OIDplusConfigInitializationException |
82 | * @throws OIDplusException |
82 | * @throws OIDplusException |
83 | */ |
83 | */ |
84 | public function gui(string $id, array &$out, bool &$handled) { |
84 | public function gui(string $id, array &$out, bool &$handled) { |
85 | $tmp = explode('$',$id); |
85 | $tmp = explode('$',$id); |
86 | $classname = isset($tmp[1]) ? $tmp[1] : null; |
86 | $classname = $tmp[1] ?? null; |
87 | 87 | ||
88 | $parts = explode('.',$tmp[0],2); |
88 | $parts = explode('.',$tmp[0],2); |
89 | if (!isset($parts[1])) $parts[1] = ''; |
89 | if (!isset($parts[1])) $parts[1] = ''; |
90 | if ($parts[0] != 'oidplus:system_plugins') return; |
90 | if ($parts[0] != 'oidplus:system_plugins') return; |
91 | $handled = true; |
91 | $handled = true; |