Move some Task model methods to the TaskFinder class

This commit is contained in:
Frédéric Guillot
2014-10-12 15:32:35 -04:00
parent b7060b33ef
commit 4061927d21
32 changed files with 434 additions and 334 deletions

View File

@@ -7,6 +7,7 @@ use Core\Cli;
use Core\Tool;
use Model\Config;
use Model\Task;
use Model\TaskFinder;
use Model\TaskExport;
use Model\Notification;
@@ -47,7 +48,7 @@ $cli->register('export-csv', function() use ($cli, $registry) {
$cli->register('send-notifications-due-tasks', function() use ($cli, $registry) {
$notificationModel = new Notification($registry);
$taskModel = new Task($registry);
$taskModel = new TaskFinder($registry);
$tasks = $taskModel->getOverdueTasks();
// Group tasks by project