$artist->db_response("json"); break; case "quickupdate_artist": $artist = new WT_Artist($_POST["artist_id"]); $artist->quick_update($_POST); $artist->db_response("json"); break; case "insert_artist": $artist = new WT_Artist(); $artist->insert($_POST); $artist->db_response("json"); break; case "delete_artist": unset($_POST["action"]); $artist = new WT_Artist($_POST["artist_id"]); $artist->delete($_POST["_nonce"]); $artist->db_response("json"); break; case "delete_all_artists": unset($_POST["action"]); if ($_POST["id"]) { $artist = new WT_Artist(); $artist->delete_all(json_decode(stripslashes($_POST["id"])), $_POST["_nonce"]); $artist->db_response("json"); } break; case "default_artist": $id = $_POST["artist_id"]; if ($id) { $artist = new WT_Artist($id); $artist->set_default(1);