diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-28 19:48:22 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-28 19:48:22 -0400 |
commit | 14713b0ec7ed93ca45578da069ad4e19a7d8addf (patch) | |
tree | 79972d53f6091a1ddb17f64a6a05a5523f5d5168 /app/Controller/ProjectGanttController.php | |
parent | 936376ffe74c583d3cb819e98f53a85137fdf8bc (diff) |
Rename all models
Diffstat (limited to 'app/Controller/ProjectGanttController.php')
-rw-r--r-- | app/Controller/ProjectGanttController.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Controller/ProjectGanttController.php b/app/Controller/ProjectGanttController.php index 1c6ace58..a70d9eee 100644 --- a/app/Controller/ProjectGanttController.php +++ b/app/Controller/ProjectGanttController.php @@ -6,7 +6,7 @@ use Kanboard\Filter\ProjectIdsFilter; use Kanboard\Filter\ProjectStatusFilter; use Kanboard\Filter\ProjectTypeFilter; use Kanboard\Formatter\ProjectGanttFormatter; -use Kanboard\Model\Project; +use Kanboard\Model\ProjectModel; /** * Projects Gantt Controller @@ -21,13 +21,13 @@ class ProjectGanttController extends BaseController */ public function show() { - $project_ids = $this->projectPermission->getActiveProjectIds($this->userSession->getId()); + $project_ids = $this->projectPermissionModel->getActiveProjectIds($this->userSession->getId()); $filter = $this->projectQuery - ->withFilter(new ProjectTypeFilter(Project::TYPE_TEAM)) - ->withFilter(new ProjectStatusFilter(Project::ACTIVE)) + ->withFilter(new ProjectTypeFilter(ProjectModel::TYPE_TEAM)) + ->withFilter(new ProjectStatusFilter(ProjectModel::ACTIVE)) ->withFilter(new ProjectIdsFilter($project_ids)); - $filter->getQuery()->asc(Project::TABLE.'.start_date'); + $filter->getQuery()->asc(ProjectModel::TABLE.'.start_date'); $this->response->html($this->helper->layout->app('project_gantt/show', array( 'projects' => $filter->format(new ProjectGanttFormatter($this->container)), @@ -42,7 +42,7 @@ class ProjectGanttController extends BaseController { $values = $this->request->getJson(); - $result = $this->project->update(array( + $result = $this->projectModel->update(array( 'id' => $values['id'], 'start_date' => $this->dateParser->getIsoDate(strtotime($values['start'])), 'end_date' => $this->dateParser->getIsoDate(strtotime($values['end'])), |