xref: /plugin/bez/ctl/start.php (revision 7e020ae5031ccbf0eed33307800fb49fb59c67b0)
1<?php
2include_once DOKU_PLUGIN."bez/models/issues.php";
3include_once DOKU_PLUGIN."bez/models/comments.php";
4include_once DOKU_PLUGIN."bez/models/causes.php";
5include_once DOKU_PLUGIN."bez/models/tasks.php";
6
7$isso = new Issues();
8$tasko= new Tasks();
9
10$issues = $isso->get_by_days();
11$tasks = $tasko->get_by_days();
12
13$timeline = $helper->days_array_merge($issues, $tasks);
14
15$template['timeline'] = $timeline;
16
17$isso = new Issues();
18$no = count($isso->get_filtered(array('state' => '0', 'coordinator' => $INFO['client'])));
19$template['my_issues'] = $no;
20
21$tasko = new Tasks();
22$no = count($tasko->get_filtered(array('state' => '0', 'executor' => $INFO['client'])));
23$template['my_tasks'] = $no;
24
25$no = count($isso->get_filtered( array('state' => '-proposal') ));
26$template['proposals'] = $no;
27
28$template['client'] = $INFO['client'];
29