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$causo = new Causes(); 14$commo = new Comments(); 15 16$issues = $isso->get_by_days(7); 17$tasks = $tasko->get_by_days(7); 18$causes = $causo->get_by_days(7); 19$comments = $commo->get_by_days(7); 20 21$timeline = $helper->days_array_merge($issues, $tasks); 22 23$template['timeline'] = $timeline; 24 25$isso = new Issues(); 26$no = count($isso->get_filtered(array('state' => '0', 'coordinator' => $INFO['client']))); 27$template['my_issues'] = $no; 28 29$tasko = new Tasks(); 30$no = count($tasko->get_filtered(array('state' => '0', 'executor' => $INFO['client']))); 31$template['my_tasks'] = $no; 32 33$no = count($isso->get_filtered( array('state' => '-proposal') )); 34$template['proposals'] = $no; 35 36$template['client'] = $INFO['client']; 37 38/*pobieranie wersji beza na podstawie pliku plugin.info.txt*/ 39$info = $this->getInfo(); 40$template[version] = $info[date]; 41 42