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 $from = date('Y-m-d', strtotime($_POST['from'])); 14 $to = date('Y-m-d', strtotime($_POST['to'])); 15 $range = array($from, $to); 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