Expose tags to the user interface (first prototype)
This commit is contained in:
@@ -42,6 +42,24 @@ class TagModel extends Base
|
||||
return $this->db->table(self::TABLE)->eq('project_id', $project_id)->asc('name')->findAll();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get assignable tags for a project
|
||||
*
|
||||
* @access public
|
||||
* @param integer $project_id
|
||||
* @return array
|
||||
*/
|
||||
public function getAssignableList($project_id)
|
||||
{
|
||||
return $this->db->hashtable(self::TABLE)
|
||||
->beginOr()
|
||||
->eq('project_id', $project_id)
|
||||
->eq('project_id', 0)
|
||||
->closeOr()
|
||||
->asc('name')
|
||||
->getAll('id', 'name');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get one tag
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user