diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-20 11:58:27 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-20 11:58:27 +0200 |
commit | 5f96af82f26967f4614b89322a82a59cb48bd2a3 (patch) | |
tree | 98f527458d27f325cec7419dbb033b8f9f5f8b20 /kanboard | |
parent | 95e54d1d300809cb8656c52d029f797ba5961a04 (diff) |
Split Task model into smaller classes
Diffstat (limited to 'kanboard')
-rwxr-xr-x | kanboard | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8,6 +8,7 @@ use Core\Tool; use Core\Translator; use Model\Config; use Model\Task; +use Model\TaskExport; use Model\Notification; $config = new Config($registry); @@ -40,8 +41,8 @@ $cli->register('export-csv', function() use ($cli, $registry) { $start_date = $GLOBALS['argv'][3]; $end_date = $GLOBALS['argv'][4]; - $taskModel = new Task($registry); - $data = $taskModel->export($project_id, $start_date, $end_date); + $taskExport = new TaskExport($registry); + $data = $taskExport->export($project_id, $start_date, $end_date); if (is_array($data)) { Tool::csv($data); |