diff options
Diffstat (limited to 'app/Controller/UserListController.php')
-rw-r--r-- | app/Controller/UserListController.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/app/Controller/UserListController.php b/app/Controller/UserListController.php new file mode 100644 index 00000000..685746fb --- /dev/null +++ b/app/Controller/UserListController.php @@ -0,0 +1,32 @@ +<?php + +namespace Kanboard\Controller; + +/** + * Class User List Controller + * + * @package Kanboard\Controller + * @author Frederic Guillot + */ +class UserListController extends BaseController +{ + /** + * List all users + * + * @access public + */ + public function show() + { + $paginator = $this->paginator + ->setUrl('UserListController', 'show') + ->setMax(30) + ->setOrder('username') + ->setQuery($this->user->getQuery()) + ->calculate(); + + $this->response->html($this->helper->layout->app('user_list/show', array( + 'title' => t('Users').' ('.$paginator->getTotal().')', + 'paginator' => $paginator, + ))); + } +} |