2 require_once 'MTrackWeb.php';
4 class MTrackWeb_Project extends MTrackWeb
7 //function getAuth-- inherit
9 function get($code='') {
11 if (isset($_REQUEST['active_project_id'])) {
12 $this->currentProject($_REQUEST['active_project_id']);
13 return $this->jok($this->currentProject());
16 if (!isset($_REQUEST['ajax_body'])) {
19 $this->masterTemplate = 'project.html';
21 $p = DB_DataObject::factory('Projects');
22 $p->get( $this->currentProject());
27 $this->milestones = $this->project->milestones();
35 if (!$this->authUser) {
42 // members... (might be large one day)
43 $pr = DB_DataObject::Factory('ProjectDirectory');
44 $pr->project_id = $this->currentProject();
47 if ($this->authUser->company()->comptype !='OWNER') {
48 $pr->whereAdd("role=''");
50 $ar = $pr->fetchAll();
52 $pd->person = $pd->person();
53 $pd->person->perms = $pd->person->getPerms();
54 $pd->person->groups = $pd->person->groups();
55 $this->people[] = $pd;