1 <?php # vim:ts=2:sw=2:et:
2 /* For licensing and copyright terms, see the file named LICENSE */
5 // partly - event.toHTML is borked... - we should use templating for this..
6 require_once 'MTrackWeb.php';
8 class MTrackWeb_Events extends MTrackWeb
19 $this->id = $pi ? $pi: $_GET['id'];
20 $this->id = $this->id == 'new' ? 0 : $this->id;
22 $this->tid = is_numeric($this->id) ? $this->id : 0;
27 $this->issue = (strlen($this->id) == 32) ?
28 MTrackIssue::loadById($this->id) :
29 MTrackIssue::loadByNSIdent($this->id);
39 MTrackACL::requireAllRights("ticket:" . $this->issue->tid, 'read');
44 $start = isseT($_REQUEST['start']) ? (int) $_REQUEST['start'] : 0;
45 $limit = isseT($_REQUEST['limit']) ? (int) $_REQUEST['limit'] : 10;
47 // output from this areay..
50 $change_audit = array();
51 $effort_audit = array();
54 $tid = $this->issue->tid;
55 require_once 'MTrack/DataObjects/Event.php';
57 $changes = MTrack_DataObject_Event::fetchRange($this->issue, $start, $limit);
60 foreach($changes as $c) {
64 //$this->renderEvents();