xref: /plugin/bez/ctl/start.php (revision ea5c5471cb346e25ccbc3aefb2c799ea52430ef4)
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/*w celach importu*/
8include_once DOKU_PLUGIN."bez/models/issuetypes.php";
9new Issuetypes();
10
11$isso = new Issues();
12$tasko= new Tasks();
13
14$issues = $isso->get_by_days();
15$tasks = $tasko->get_by_days();
16
17$timeline = $helper->days_array_merge($issues, $tasks);
18
19$template['timeline'] = $timeline;
20
21$isso = new Issues();
22$no = count($isso->get_filtered(array('state' => '0', 'coordinator' => $INFO['client'])));
23$template['my_issues'] = $no;
24
25$tasko = new Tasks();
26$no = count($tasko->get_filtered(array('state' => '0', 'executor' => $INFO['client'])));
27$template['my_tasks'] = $no;
28
29$no = count($isso->get_filtered( array('state' => '-proposal') ));
30$template['proposals'] = $no;
31
32$template['client'] = $INFO['client'];
33
34/*pobieranie wersji beza na podstawie pliku plugin.info.txt*/
35$info = $this->getInfo();
36$template[version] = $info[date];
37
38