diff options
Diffstat (limited to 'app/Model/Project.php')
-rw-r--r-- | app/Model/Project.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/app/Model/Project.php b/app/Model/Project.php index b5716a81..51a23967 100644 --- a/app/Model/Project.php +++ b/app/Model/Project.php @@ -319,7 +319,7 @@ class Project extends Base * Get a list of project by status * * @access public - * @param integer $status Proejct status: self::ACTIVE or self:INACTIVE + * @param integer $status Project status: self::ACTIVE or self:INACTIVE * @return array */ public function getListByStatus($status) @@ -347,7 +347,7 @@ class Project extends Base } /** - * Return a list of projects for a given user + * Filter a list of projects for a given user * * @access public * @param array $projects Project list: ['project_id' => 'project_name'] @@ -366,6 +366,18 @@ class Project extends Base } /** + * Return a list of projects for a given user + * + * @access public + * @param integer $user_id User id + * @return array + */ + public function getAvailableList($user_id) + { + return $this->filterListByAccess($this->getListByStatus(self::ACTIVE), $user_id); + } + + /** * Create a project * * @access public |