@@ 379-387 (lines=9) @@ | ||
376 | * |
|
377 | * @return int |
|
378 | */ |
|
379 | public function countByColumnId($project_id, $column_id) |
|
380 | { |
|
381 | return $this->db |
|
382 | ->table(TaskModel::TABLE) |
|
383 | ->eq('project_id', $project_id) |
|
384 | ->eq('column_id', $column_id) |
|
385 | ->eq('is_active', 1) |
|
386 | ->count(); |
|
387 | } |
|
388 | ||
389 | /** |
|
390 | * Count the number of tasks for a given column and swimlane. |
|
@@ 398-407 (lines=10) @@ | ||
395 | * |
|
396 | * @return int |
|
397 | */ |
|
398 | public function countByColumnAndSwimlaneId($project_id, $column_id, $swimlane_id) |
|
399 | { |
|
400 | return $this->db |
|
401 | ->table(TaskModel::TABLE) |
|
402 | ->eq('project_id', $project_id) |
|
403 | ->eq('column_id', $column_id) |
|
404 | ->eq('swimlane_id', $swimlane_id) |
|
405 | ->eq('is_active', 1) |
|
406 | ->count(); |
|
407 | } |
|
408 | ||
409 | /** |
|
410 | * Return true if the task exists. |