Added mail helper
This commit is contained in:
@@ -89,6 +89,22 @@ class SwimlaneModel extends Base
|
||||
->findOne();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get first active swimlane for a project
|
||||
*
|
||||
* @access public
|
||||
* @param integer $project_id
|
||||
* @return array
|
||||
*/
|
||||
public function getFirstActiveSwimlane($project_id)
|
||||
{
|
||||
return $this->db->table(self::TABLE)
|
||||
->eq('is_active', self::ACTIVE)
|
||||
->eq('project_id', $project_id)
|
||||
->orderBy('position', 'asc')
|
||||
->findOne();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get default swimlane properties
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user