From b1e2ca00ce7375ffcbe5e927135c8892036e6bd6 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 16 May 2016 21:07:29 -0400 Subject: Rename Api classes --- app/Api/Project.php | 87 ----------------------------------------------------- 1 file changed, 87 deletions(-) delete mode 100644 app/Api/Project.php (limited to 'app/Api/Project.php') diff --git a/app/Api/Project.php b/app/Api/Project.php deleted file mode 100644 index 846d7046..00000000 --- a/app/Api/Project.php +++ /dev/null @@ -1,87 +0,0 @@ -checkProjectPermission($project_id); - return $this->formatProject($this->project->getById($project_id)); - } - - public function getProjectByName($name) - { - return $this->formatProject($this->project->getByName($name)); - } - - public function getAllProjects() - { - return $this->formatProjects($this->project->getAll()); - } - - public function removeProject($project_id) - { - return $this->project->remove($project_id); - } - - public function enableProject($project_id) - { - return $this->project->enable($project_id); - } - - public function disableProject($project_id) - { - return $this->project->disable($project_id); - } - - public function enableProjectPublicAccess($project_id) - { - return $this->project->enablePublicAccess($project_id); - } - - public function disableProjectPublicAccess($project_id) - { - return $this->project->disablePublicAccess($project_id); - } - - public function getProjectActivities(array $project_ids) - { - return $this->helper->projectActivity->getProjectsEvents($project_ids); - } - - public function getProjectActivity($project_id) - { - $this->checkProjectPermission($project_id); - return $this->helper->projectActivity->getProjectEvents($project_id); - } - - public function createProject($name, $description = null) - { - $values = array( - 'name' => $name, - 'description' => $description - ); - - list($valid, ) = $this->projectValidator->validateCreation($values); - return $valid ? $this->project->create($values) : false; - } - - public function updateProject($id, $name, $description = null) - { - $values = array( - 'id' => $id, - 'name' => $name, - 'description' => $description - ); - - list($valid, ) = $this->projectValidator->validateModification($values); - return $valid && $this->project->update($values); - } -} -- cgit v1.2.3