summaryrefslogtreecommitdiff
path: root/app/Controller/Board.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-05-23 09:49:26 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-05-23 09:49:26 -0400
commit7b53d47d467115a173c642526a7d2474a22f88fb (patch)
tree43bd4f9c16d894028977f2d61476e74778527993 /app/Controller/Board.php
parenta7167f63c51a5fc24f7d5c6212cd125cee8cdb69 (diff)
Improve user interface
Diffstat (limited to 'app/Controller/Board.php')
-rw-r--r--app/Controller/Board.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Controller/Board.php b/app/Controller/Board.php
index c727a422..4cf0d381 100644
--- a/app/Controller/Board.php
+++ b/app/Controller/Board.php
@@ -2,8 +2,8 @@
namespace Controller;
-use Model\Project;
-use Model\User;
+use Model\Project as ProjectModel;
+use Model\User as UserModel;
/**
* Board controller
@@ -52,7 +52,7 @@ class Board extends Base
{
$task = $this->task->getById($this->request->getIntegerParam('task_id'));
$project = $this->project->getById($task['project_id']);
- $projects = $this->project->getListByStatus(Project::ACTIVE);
+ $projects = $this->project->getListByStatus(ProjectModel::ACTIVE);
if ($this->acl->isRegularUser()) {
$projects = $this->project->filterListByAccess($projects, $this->acl->getUserId());
@@ -143,7 +143,7 @@ class Board extends Base
*/
public function index()
{
- $projects = $this->project->getListByStatus(Project::ACTIVE);
+ $projects = $this->project->getListByStatus(ProjectModel::ACTIVE);
if ($this->acl->isRegularUser()) {
$projects = $this->project->filterListByAccess($projects, $this->acl->getUserId());
@@ -177,10 +177,10 @@ class Board extends Base
public function show()
{
$project_id = $this->request->getIntegerParam('project_id');
- $user_id = $this->request->getIntegerParam('user_id', User::EVERYBODY_ID);
+ $user_id = $this->request->getIntegerParam('user_id', UserModel::EVERYBODY_ID);
$this->checkProjectPermissions($project_id);
- $projects = $this->project->getListByStatus(Project::ACTIVE);
+ $projects = $this->project->getListByStatus(ProjectModel::ACTIVE);
if ($this->acl->isRegularUser()) {
$projects = $this->project->filterListByAccess($projects, $this->acl->getUserId());