コード例 #1
0
ファイル: mediator.php プロジェクト: banjo78910/CCEL-Schedule
        $med->sendMessage($_GET['recipient'], $_GET['subject'], $_GET['content']);
    } elseif ($function == 'getAllowedRecipients') {
        $med->getAllowedRecipients();
    } elseif ($function == 'deleteMessage') {
        $med->deleteMessage($_GET['messageID']);
    } elseif ($function == 'registerJsonUser') {
        $med->registerJsonUser($_GET['jsonString']);
    } elseif ($function == 'displayAttendingSessions') {
        $med->displayAttendingSessions();
    } elseif ($function == 'willAttend') {
        $med->willAttend($_GET['sessionID']);
    } elseif ($function == 'cancelAttend') {
        $med->cancelAttend($_GET['sessionID']);
    } elseif ($function == 'signUpToTutor') {
        $med->signUpToTutor($_GET['sessionID']);
    } elseif ($function == 'cancelTutor') {
        $med->cancelTutor($_GET['sessionID']);
    } elseif ($function == 'displaySessions') {
        $med->displaySessions();
    } elseif ($function == 'createSession') {
        $med->createSession($_GET['date'], $_GET['time'], $_GET['subject'], $_GET['gradeLevel']);
    } elseif ($function == 'createJsonSession') {
        $med->createJsonSession($_GET['jsonString']);
    } elseif ($function == 'modifySession') {
        $med->modifySession($_GET['sessionID'], $_GET['date'], $_GET['time'], $_GET['subject'], $_GET['gradeLevel']);
    } elseif ($function == 'cancelSession') {
        $med->cancelSession($_GET['sessionID']);
    } elseif ($function == 'displaySiteSessions') {
        $med->displaySiteSessions();
    }
}