php warnings
[Pman.MTrack] / View.php
1 <?php
2
3 require_once 'Pman.php';
4
5 class Pman_MTrack_View extends Pman
6 {
7     var $masterTemplate = 'view.html';
8     function getAuth()
9     {
10         if (!$this->getAuthUser()) {
11             $this->jerr("invalid url (no auth)");
12         }
13     }
14     function get($id = '', $opts=array())
15     {
16         
17         $t = DB_DAtaObject::factory('mtrack_ticket');
18         $t->autoJoin();
19         if (empty($id) || !$t->get($id)) {
20             $this->jerr('invalid ticket');
21         }
22         if (!$t->checkPerm('S', $this->authUser)) {
23             $this->jerr("access denied");
24         }
25         $this->ticket = $t;
26         // comments... // images..
27         
28     }
29 }