Add missing swimlane REST API

Missing API to retrieve extra details were missing:
  getSwimlane($project_id, $name)
  getAllSwimlanes($project_id)
This commit is contained in:
Francois Ferrand
2015-03-03 16:01:37 +01:00
parent 23f8f2c576
commit efbcc22f5a
3 changed files with 107 additions and 0 deletions

View File

@@ -74,6 +74,22 @@ class Swimlane extends Base
->findOneColumn('id');
}
/**
* Get a swimlane by the project and the name
*
* @access public
* @param integer $project_id Project id
* @param string $name Name
* @return integer
*/
public function getByName($project_id, $name)
{
return $this->db->table(self::TABLE)
->eq('project_id', $project_id)
->eq('name', $name)
->findAll();
}
/**
* Get default swimlane properties
*