* [bug#50888,doing,0.1h] add user list method.

This commit is contained in:
tianshujie
2024-06-11 16:59:15 +08:00
parent 6ef285729d
commit 68afb8d701
+16
View File
@@ -61,4 +61,20 @@ class kanbanZen extends kanban
$this->display();
}
public function setUserAvatar()
{
/* Get user list. */
$userList = array();
$users = $this->loadModel('user')->getPairs('noletter|nodeleted');
$avatarPairs = $this->user->getAvatarPairs('all');
foreach($avatarPairs as $account => $avatar)
{
if(!isset($users[$account])) continue;
$userList[$account]['realname'] = $users[$account];
$userList[$account]['avatar'] = $avatar;
}
$this->view->userList = $userList;
}
}