diff options
| author | Frederic Guillot <fred@kanboard.net> | 2016-04-12 21:26:17 -0400 |
|---|---|---|
| committer | Frederic Guillot <fred@kanboard.net> | 2016-04-12 21:26:17 -0400 |
| commit | af7027ea31a691e2eea6d813f6aa3cf08f8b9d0a (patch) | |
| tree | 8524395f06b30f812dca5cd68dd15fa09e3a2410 /app/Console/ProjectDailyColumnStatsExport.php | |
| parent | 2a74ed6e63b05627928e1dd6eeb67d824f4c1903 (diff) | |
Rename CLI classes
Diffstat (limited to 'app/Console/ProjectDailyColumnStatsExport.php')
| -rw-r--r-- | app/Console/ProjectDailyColumnStatsExport.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/app/Console/ProjectDailyColumnStatsExport.php b/app/Console/ProjectDailyColumnStatsExport.php deleted file mode 100644 index 2513fbf1..00000000 --- a/app/Console/ProjectDailyColumnStatsExport.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php - -namespace Kanboard\Console; - -use Kanboard\Core\Csv; -use Symfony\Component\Console\Input\InputArgument; -use Symfony\Component\Console\Input\InputInterface; -use Symfony\Component\Console\Output\OutputInterface; - -class ProjectDailyColumnStatsExport extends Base -{ - protected function configure() - { - $this - ->setName('export:daily-project-column-stats') - ->setDescription('Daily project column stats CSV export (number of tasks per column and per day)') - ->addArgument('project_id', InputArgument::REQUIRED, 'Project id') - ->addArgument('start_date', InputArgument::REQUIRED, 'Start date (YYYY-MM-DD)') - ->addArgument('end_date', InputArgument::REQUIRED, 'End date (YYYY-MM-DD)'); - } - - protected function execute(InputInterface $input, OutputInterface $output) - { - $data = $this->projectDailyColumnStats->getAggregatedMetrics( - $input->getArgument('project_id'), - $input->getArgument('start_date'), - $input->getArgument('end_date') - ); - - if (is_array($data)) { - Csv::output($data); - } - } -} |
