Пример #1
0
     echo json_encode($mantis->getPartners());
     break;
 case 'mantisReporters':
     echo json_encode($mantis->getReporters($r));
     break;
 case 'mantisUsers':
     echo json_encode($mantis->getUsers());
     break;
 case 'mantisMonths':
     echo json_encode($mantis->getMonths());
     break;
 case 'mantisQueryResult':
     $uid = $r['uid'];
     $pid = $r['pid'];
     $filter = array('uid' => $uid, 'pid' => $pid);
     echo json_encode($mantis->runQuery($filter));
     break;
 case 'projectAssignCheck':
     $tpid = $r['togglPId'];
     $mpid = $r['mantisPId'];
     $filter = array('tpid' => $tpid, 'mpid' => $mpid);
     echo json_encode($mantis->projectAssignCheck($filter));
     break;
 case 'projectAssign':
     $tpid = $r['togglPId'];
     $mpid = $r['mantisPId'];
     $filter = array('tpid' => $tpid, 'mpid' => $mpid);
     echo json_encode($mantis->projectAssign($tpid, $mpid));
     break;
 default:
     echo 'error';