コード例 #1
0
ファイル: ajax.php プロジェクト: JJWTimmer/BLAM
     $response = BLAM::createAnswer($_POST['ticket_id'], $_POST['message']);
     // returns integer UpdateId or exception
     break;
 case 'becomeChildTicket':
     BLAM::checkLogged();
     $response = BLAM::becomeChildTicket($_POST['id'], $_POST['parent_id']);
     // returns null or exception
     break;
 case 'becomeParentTicket':
     BLAM::checkLogged();
     $response = BLAM::becomeParentTicket($_POST['id']);
     // returns null or exception
     break;
 case 'getAutotext':
     BLAM::checkLogged();
     $response = BLAM::getAutotext();
     // returns null or exception
     break;
 case 'getReminders':
     BLAM::checkLogged();
     $response = BLAM::getReminders($_POST['timestamp_day']);
     // returns null or exception
     break;
 case 'getTaskDetail':
     BLAM::checkLogged();
     $response = BLAM::getTaskDetail($_POST['id']);
     break;
 case 'confirmNotification':
     BLAM::checkLogged();
     $response = BLAM::confirmNotification($_POST['ticket_id'], $_POST['update_id'], $_POST['type']);
     break;