Example #1
0
         echo_error(PARAMETER_NOT_SET);
     }
     break;
 case 'get_events_keyword_location_within_one_month':
     if (isset($_GET['keyword']) and isset($_GET['location'])) {
         $keyword = $_GET['keyword'];
         $location = $_GET['location'];
         Controller::get_events_keyword_location_within_one_month($keyword, $location);
     } else {
         echo_error(PARAMETER_NOT_SET);
     }
     break;
 case 'get_events_at':
     if (isset($_GET['location'])) {
         $location = $_GET['location'];
         Controller::get_events_at($location);
     } else {
         echo_error(PARAMETER_NOT_SET);
     }
     break;
 case 'get_events_keyword_location':
     if (isset($_GET['keyword']) and isset($_GET['location'])) {
         $keyword = $_GET['keyword'];
         $location = $_GET['location'];
         Controller::get_events_keyword_location($keyword, $location);
     } else {
         echo_error(PARAMETER_NOT_SET);
     }
     break;
 case 'test':
     Controller::test();