Rev 1121 | Rev 1148 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1121 | Rev 1130 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | * @throws OIDplusException |
31 | * @throws OIDplusException |
32 | */ |
32 | */ |
33 | public static function nonjs_menu(): string { |
33 | public static function nonjs_menu(): string { |
34 | $json = array(); |
34 | $json = array(); |
35 | 35 | ||
36 | $static_node_id = isset($_REQUEST['goto']) ? $_REQUEST['goto'] : 'oidplus:system'; |
36 | $static_node_id = $_REQUEST['goto'] ?? 'oidplus:system'; |
37 | 37 | ||
38 | foreach (OIDplus::getPagePlugins() as $plugin) { |
38 | foreach (OIDplus::getPagePlugins() as $plugin) { |
39 | // Note: The system (OIDplusMenuUtils) does only show the menu of |
39 | // Note: The system (OIDplusMenuUtils) does only show the menu of |
40 | // publicPage plugins. Menu entries for RAs and Admins are |
40 | // publicPage plugins. Menu entries for RAs and Admins are |
41 | // handled by the tree() function of the plugin publicPages/090_login |
41 | // handled by the tree() function of the plugin publicPages/090_login |
Line 108... | Line 108... | ||
108 | } |
108 | } |
109 | } |
109 | } |
110 | } |
110 | } |
111 | 111 | ||
112 | /** |
112 | /** |
113 | * @param $parent |
113 | * @param string $parent |
114 | * @param $goto_path |
114 | * @param array|true|null $goto_path |
115 | * @return array |
115 | * @return array |
116 | * @throws OIDplusConfigInitializationException |
116 | * @throws OIDplusConfigInitializationException |
117 | * @throws OIDplusException |
117 | * @throws OIDplusException |
118 | */ |
118 | */ |
119 | public static function tree_populate($parent, $goto_path=null): array { |
119 | public static function tree_populate(string $parent, $goto_path=null): array { |
120 | $children = array(); |
120 | $children = array(); |
121 | 121 | ||
122 | $parentObj = OIDplusObject::parse($parent); |
122 | $parentObj = OIDplusObject::parse($parent); |
123 | 123 | ||
124 | @list($namespace, $oid) = explode(':', $parent, 2); |
124 | @list($namespace, $oid) = explode(':', $parent, 2); |