예제 #1
0
 protected function SetGroupsData($pilotid)
 {
     # This is for the groups tab
     $freegroups = array();
     $allgroups = PilotGroups::GetAllGroups();
     foreach ($allgroups as $group) {
         if (!PilotGroups::CheckUserInGroup($pilotid, $group->groupid)) {
             array_push($freegroups, $group->name);
         }
     }
     $this->set('pilotid', $pilotid);
     $this->set('pilotgroups', PilotData::GetPilotGroups($pilotid));
     $this->set('freegroups', $freegroups);
 }