diff --git a/lib/zin/wg/gantt/v1.php b/lib/zin/wg/gantt/v1.php index 958eaf4994..ef3e96004d 100644 --- a/lib/zin/wg/gantt/v1.php +++ b/lib/zin/wg/gantt/v1.php @@ -35,4 +35,20 @@ class gantt extends wg if($currentLang != 'en' && file_exists($langJSFile)) $js .= "\nwaitGantt(function(){\n" . file_get_contents($langJSFile) . "\n});\n"; return $js; } + + public function getUserList(): array + { + $users = data('users'); + if(empty($users)) return array(); + + $userList = array(); + foreach($users as $account => $realname) + { + $user = array(); + $user['key'] = $account; + $user['label'] = $realname; + $userList[] = $user; + } + return $userList; + } }