Exemplo n.º 1
0
         $artist->db_response("json");
     }
     break;
 case "default_artist":
     $id = $_POST["artist_id"];
     if ($id) {
         $artist = new WT_Artist($id);
         $artist->set_default(1);
         $artist->db_response("json");
     }
     break;
 case "remove_default_artist":
     $id = $_POST["artist_id"];
     if ($id) {
         $artist = new WT_Artist($id);
         $artist->set_default("");
         $artist->db_response("json");
     }
     break;
     // TOUR
 // TOUR
 case "get_tour":
     $tour = new WT_Tour($_POST["tour_id"]);
     if (!empty($_POST["tour_id"])) {
         $tour->retrieve();
     } else {
         $tour->defaults();
     }
     echo json_encode($tour->db_out(null, 0));
     break;
 case "update_tour":