xref: /plugin/bez/ctl/activity_report.php (revision eb2e6be9c74b2df263bd0a7ed247ee70c3d7cbd1)
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