xref: /plugin/bez/ctl/activity_report.php (revision 5b88664dd9ec005af8cd559699bb8f20766e1ba0)
1<?php
2/** @var action_plugin_bez $this */
3
4use \dokuwiki\plugin\bez;
5
6if ($this->model->get_level() < BEZ_AUTH_USER) {
7    throw new bez\meta\PermissionDeniedException();
8}
9
10$range = array();
11if(count($_POST) > 0) {
12    $this->tpl->set_values($_POST);
13    if ($_POST['from'] != '' && $_POST['to'] != '') {
14        $range = array($_POST['from'], $_POST['to']);
15    }
16}
17
18$this->tpl->set('thread_involvement', $this->model->threadFactory->users_involvement($range));
19$this->tpl->set('task_involvement', $this->model->taskFactory->users_involvement($range));
20$this->tpl->set('kpi', $this->model->threadFactory->kpi($range));
21$this->tpl->set('bez_activity', $this->model->threadFactory->bez_activity($range));