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