1 | <?php |
||
13 | class Admin extends Ui { |
||
14 | |||
15 | protected $forAdmins = array('usermanager', 'acl', 'extension', 'config', 'styling'); |
||
16 | protected $forManagers = array('revert', 'popularity'); |
||
17 | /** @var array[] */ |
||
18 | protected $menu; |
||
19 | |||
20 | /** |
||
21 | * Display the UI element |
||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | public function show() { |
||
36 | |||
37 | /** |
||
38 | * Show the given menu of available plugins |
||
39 | * |
||
40 | * @param string $type admin|manager|other |
||
41 | */ |
||
42 | protected function showMenu($type) { |
||
58 | |||
59 | /** |
||
60 | * Display the DokuWiki version |
||
61 | */ |
||
62 | protected function showVersion() { |
||
67 | |||
68 | /** |
||
69 | * data security check |
||
70 | * |
||
71 | * simple check if the 'savedir' is relative and accessible when appended to DOKU_URL |
||
72 | * |
||
73 | * it verifies either: |
||
74 | * 'savedir' has been moved elsewhere, or |
||
75 | * has protection to prevent the webserver serving files from it |
||
76 | */ |
||
77 | protected function showSecurityCheck() { |
||
87 | |||
88 | /** |
||
89 | * Display a single Admin menu item |
||
90 | * |
||
91 | * @param array $item |
||
92 | */ |
||
93 | protected function showMenuItem($item) { |
||
107 | |||
108 | /** |
||
109 | * Build list of admin functions from the plugins that handle them |
||
110 | * |
||
111 | * Checks the current permissions to decide on manager or admin plugins |
||
112 | * |
||
113 | * @return array list of plugins with their properties |
||
114 | */ |
||
115 | protected function getPluginList() { |
||
151 | |||
152 | /** |
||
153 | * Custom sorting for admin menu |
||
154 | * |
||
155 | * We sort alphabetically first, then by sort value |
||
156 | * |
||
157 | * @param array $a |
||
158 | * @param array $b |
||
159 | * @return int |
||
160 | */ |
||
161 | protected function menuSort($a, $b) { |
||
167 | } |
||
168 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..