summaryrefslogtreecommitdiff
path: root/app/Controller/ProjectOverview.php
blob: f8837f9579b66ab7a696770e6b87b10584600a6a (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
28
29
30
31
32
<?php

namespace Kanboard\Controller;

/**
 * Project Overview Controller
 *
 * @package  controller
 * @author   Frederic Guillot
 */
class ProjectOverview extends BaseController
{
    /**
     * Show project overview
     */
    public function show()
    {
        $project = $this->getProject();
        $this->project->getColumnStats($project);

        $this->response->html($this->helper->layout->app('project_overview/show', array(
            'project' => $project,
            'title' => $project['name'],
            'description' => $this->helper->projectHeader->getDescription($project),
            'users' => $this->projectUserRole->getAllUsersGroupedByRole($project['id']),
            'roles' => $this->role->getProjectRoles(),
            'events' => $this->helper->projectActivity->getProjectEvents($project['id'], 10),
            'images' => $this->projectFile->getAllImages($project['id']),
            'files' => $this->projectFile->getAllDocuments($project['id']),
        )));
    }
}