summaryrefslogtreecommitdiff
path: root/app/Controller/ProjectOverview.php
blob: cbd65777556076463a5e91efd5326bb759f43334 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

namespace Kanboard\Controller;

/**
 * Project Overview Controller
 *
 * @package  controller
 * @author   Frederic Guillot
 */
class ProjectOverview extends Base
{
    /**
     * Show project overview
     */
    public function show()
    {
        $params = $this->getProjectFilters('ProjectOverview', 'show');
        $params['users'] = $this->projectUserRole->getAllUsersGroupedByRole($params['project']['id']);
        $params['roles'] = $this->role->getProjectRoles();
        $params['events'] = $this->projectActivity->getProject($params['project']['id'], 10);

        $this->project->getColumnStats($params['project']);

        $this->response->html($this->helper->layout->app('project_overview/show', $params));
    }
}