diff options
author | Timo Litzbarski <tili2@gmx.de> | 2015-09-18 14:18:34 +0000 |
---|---|---|
committer | Timo Litzbarski <tili2@gmx.de> | 2015-09-18 14:18:34 +0000 |
commit | 1fa72295f20aa9794f1b33dfde95960c34d85366 (patch) | |
tree | 01727142fb5196192c468d1ec3970c92e3a063be /app/Model/Project.php | |
parent | 55ca46ad754b87991e5cc4c4bc26657b19d37830 (diff) |
User-Api: add getMyPorjects (#1233)
Diffstat (limited to 'app/Model/Project.php')
-rw-r--r-- | app/Model/Project.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Model/Project.php b/app/Model/Project.php index 52500820..6e4cfcfd 100644 --- a/app/Model/Project.php +++ b/app/Model/Project.php @@ -172,6 +172,18 @@ class Project extends Base { return $this->db->table(self::TABLE)->asc('name')->findAll(); } + + /** + * Get all projects with given Ids + * + * @access public + * @param integer[] $project_ids Projects id + * @return array + */ + public function getAllByIds($project_ids) + { + return $this->db->table(self::TABLE)->in('id', $project_ids)->asc('name')->findAll(); + } /** * Get all project ids |