Added mail helper

This commit is contained in:
Frederic Guillot
2016-06-01 21:28:24 -04:00
parent ca87b1b60f
commit c50255813b
8 changed files with 103 additions and 35 deletions

View File

@@ -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
*