Add a board selector instead of the list of projects

This commit is contained in:
Frédéric Guillot
2014-06-20 21:59:59 -03:00
parent 08621f99e6
commit b513313c2f
12 changed files with 62 additions and 19 deletions

View File

@@ -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']
@@ -365,6 +365,18 @@ class Project extends Base
return $projects;
}
/**
* 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
*