1<?php 2//include_once DOKU_PLUGIN."bez/models/issues.php"; 3//include_once DOKU_PLUGIN."bez/models/comments.php"; 4//include_once DOKU_PLUGIN."bez/models/causes.php"; 5//include_once DOKU_PLUGIN."bez/models/tasks.php"; 6// 7///*w celach importu*/ 8//include_once DOKU_PLUGIN."bez/models/issuetypes.php"; 9//new 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 39include_once DOKU_PLUGIN."bez/models/issues.php"; 40$isso = new Issues(); 41$no = count($isso->get_filtered(array('state' => '0', 'coordinator' => $INFO['client']))); 42$template['my_issues'] = $no; 43 44$no = count($isso->get_filtered( array('state' => '-proposal') )); 45$template['proposals'] = $no; 46 47$template['timeline'] = $this->model->timeline->get_all(30); 48//$template['my_issues'] = 'b.d.'; 49$template['my_tasks'] = $this->model->tasks->count(array( 50 'state' => '0', 51 'executor' => $this->model->user_nick 52 )); 53//$template['proposals'] = 'b.d.'; 54 55/*pobieranie wersji beza na podstawie pliku plugin.info.txt*/ 56$info = $this->getInfo(); 57$template['version'] = $info['date']; 58 59