blob: 6a56aa22c07b9a326c0b273e88df47ec0d6c7a1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
namespace Kanboard\Plugin\Timetrackingeditor\Console;
use Kanboard\Plugin\Timetrackingeditor\Html;
use Kanboard\Model\SubtaskTimeTrackingModel;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Kanboard\Console\BaseCommand;
class AllSubtaskTimeTrackingExportCommand extends BaseCommand
{
protected function configure()
{
$this
->setName('export:allsubtaskstimetracking')
->setDescription('Subtasks Time Tracking CSV export for all events');
}
protected function execute(InputInterface $input, OutputInterface $output)
{
$data = $this->subtaskTimeTrackingExport->exportAll();
if (is_array($data)) {
Html::output($data);
}
}
}
|