php8
[web.mtrack] / MTrackWeb / Reports.php
1 <?php # vim:ts=2:sw=2:et:
2 /* For licensing and copyright terms, see the file named LICENSE */
3
4 require_once 'MTrackWeb.php';
5  
6 class MTrackWeb_Reports extends MTrackWeb
7 {
8     var $template = 'reports.html';
9  
10     var $title = "Reports";
11  
12     function getAuth() 
13     {
14         parent::getAuth();
15         require_once 'MTrack/ACL.php';
16         MTrackACL::requireAllRights('Reports', 'read');
17         return true;
18     }
19     
20     function get($pi=0)
21     {
22         $q = DB_DataObject::factory('mtrack_report');
23       //  DB_DataObject::DebugLevel(1);
24         $this->rows = $q->fetchAll();
25         $this->canCreate = MTrackACL::hasAllRights('Reports', 'create');
26          
27     }
28 }
29
30  
31