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