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