Esempio n. 1
0
     $response = BLAM::getHandles($_POST['group_id']);
     // null for all or int group_id
     // returns array(integer Id, integer HandleNumber, string HandleName, string Description) handles or exception
     break;
 case 'getTicketList':
     BLAM::checkLogged();
     //date_time string format: '2011-02-23 09:03:01'
     $response = BLAM::getTicketList($_POST['recursive'], $_POST['first_id'], $_POST['timestamp_last_update'], $_POST['status']);
     //boolean recursive: false for only parents, int $last_id, date-string $last_modified, array of string $status for filtering ($status only for parent!).
     // returns array(integer Id, string Title, string Text, string Status, string user, datetime created, datetime modified) tickets or exception
     break;
     //!*
 //!*
 case 'getUpdateList':
     BLAM::checkLogged();
     $response = BLAM::getUpdateList($_POST['type'], $_POST['called'], $_POST['first_id'], $_POST['timestamp_last_update']);
     // returns array (integer id,	integer ticket_id, string Title, Datetime called, Datetime created, Datetime modified) updates or exception
     break;
 case 'closeFeedback':
     BLAM::checkLogged();
     $response = BLAM::closeFeedback($_POST['id'], $_SESSION['user']['id']);
     // returns null or exception
     break;
 case 'addChat':
     BLAM::checkLogged();
     $response = BLAM::addChat($_POST['text'], $_POST['role'], $_SESSION['user']['id']);
     // returns ChatId or exception
     break;
 case 'getChats':
     BLAM::checkLogged();
     $response = BLAM::getChats($_POST['first_id'], $_POST['role'], $_POST['timestamp_last_update']);