Use task description templates in bulk task creation
This commit is contained in:
@@ -13,11 +13,21 @@ class PredefinedTaskDescriptionModel extends Base
|
||||
return $this->db->table(self::TABLE)->eq('project_id', $projectId)->findAll();
|
||||
}
|
||||
|
||||
public function getList($projectId)
|
||||
{
|
||||
return array('' => t('None')) + $this->db->hashtable(self::TABLE)->eq('project_id', $projectId)->getAll('id', 'title');
|
||||
}
|
||||
|
||||
public function getById($projectId, $id)
|
||||
{
|
||||
return $this->db->table(self::TABLE)->eq('project_id', $projectId)->eq('id', $id)->findOne();
|
||||
}
|
||||
|
||||
public function getDescriptionById($projectId, $id)
|
||||
{
|
||||
return $this->db->table(self::TABLE)->eq('project_id', $projectId)->eq('id', $id)->findOneColumn('description');
|
||||
}
|
||||
|
||||
public function create($projectId, $title, $description)
|
||||
{
|
||||
return $this->db->table(self::TABLE)->persist(array(
|
||||
|
||||
Reference in New Issue
Block a user