//* case 'updateMessage': BLAM::checkLogged(); $response = BLAM::updateMessage($_POST['id'], $_POST['text'], $_POST['ticket']); // returns MessageId or exception break; case 'getMessages': BLAM::checkLogged(); //date_time string format: '2011-02-23 09:03:01' $response = BLAM::getMessages($_POST['first_id'], $_POST['timestamp_last_update']); //returns array (int MessageID, string Text, string Username, string Avatar, string created) messages or exception break; case 'getMessageDetail': BLAM::checkLogged(); //date_time string format: '2011-02-23 09:03:01' $response = BLAM::getMessageDetail($_POST['id']); //returns array (int MessageID, string Text, string Username, string Avatar, string created) messages or exception break; case 'searchMessages': BLAM::checkLogged(); $response = BLAM::searchMessages($_POST['keyword']); //returns array (int MessageID, string Text, string Username, string Avatar, string created) messages or exception break; case 'getUsers': BLAM::checkLogged(); $response = BLAM::getUsers($_POST['options']); // accepts 'all' or 'logged' // returns array users(integer Id, string Role, string Username, string Avatar) or exception break; case 'getGroups': BLAM::checkLogged();