diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-02-20 15:08:18 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-02-20 15:08:18 -0500 |
commit | fc468088c3b39bc4e9d185683442db1d36b61e23 (patch) | |
tree | 6f5b6a1e13f528a8f54ac502ab428feadc53e5f5 /app/Analytic | |
parent | 83832522867d06241441c04d2b3237200db57224 (diff) |
Split Board model into multiple classes
Diffstat (limited to 'app/Analytic')
-rw-r--r-- | app/Analytic/AverageTimeSpentColumnAnalytic.php | 2 | ||||
-rw-r--r-- | app/Analytic/TaskDistributionAnalytic.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Analytic/AverageTimeSpentColumnAnalytic.php b/app/Analytic/AverageTimeSpentColumnAnalytic.php index c3cff548..bef55419 100644 --- a/app/Analytic/AverageTimeSpentColumnAnalytic.php +++ b/app/Analytic/AverageTimeSpentColumnAnalytic.php @@ -40,7 +40,7 @@ class AverageTimeSpentColumnAnalytic extends Base private function initialize($project_id) { $stats = array(); - $columns = $this->board->getColumnsList($project_id); + $columns = $this->column->getList($project_id); foreach ($columns as $column_id => $column_title) { $stats[$column_id] = array( diff --git a/app/Analytic/TaskDistributionAnalytic.php b/app/Analytic/TaskDistributionAnalytic.php index 614c5f72..838652e3 100644 --- a/app/Analytic/TaskDistributionAnalytic.php +++ b/app/Analytic/TaskDistributionAnalytic.php @@ -23,7 +23,7 @@ class TaskDistributionAnalytic extends Base { $metrics = array(); $total = 0; - $columns = $this->board->getColumns($project_id); + $columns = $this->column->getAll($project_id); foreach ($columns as $column) { $nb_tasks = $this->taskFinder->countByColumnId($project_id, $column['id']); |