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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user