summaryrefslogtreecommitdiff
path: root/kanboard
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-20 11:58:27 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-20 11:58:27 +0200
commit5f96af82f26967f4614b89322a82a59cb48bd2a3 (patch)
tree98f527458d27f325cec7419dbb033b8f9f5f8b20 /kanboard
parent95e54d1d300809cb8656c52d029f797ba5961a04 (diff)
Split Task model into smaller classes
Diffstat (limited to 'kanboard')
-rwxr-xr-xkanboard5
1 files changed, 3 insertions, 2 deletions
diff --git a/kanboard b/kanboard
index 2c3ee7a9..d9c932f2 100755
--- a/kanboard
+++ b/kanboard
@@ -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);