public function pruneGame($gameId, $surrogate, $editorId, $editorToken) { if (!Module::authenticateGameEditor($gameId, $editorId, $editorToken, "read_write")) { return new returnData(6, NULL, "Failed Authentication"); } $TBD = new stdClass(); $TBD->locations = Prune::pruneLocationsForGame($gameId, $surrogate, $editorId, $editorToken); $TBD->media = Prune::pruneMediaForGame($gameId, $surrogate, $editorId, $editorToken); $TBD->note_content = Prune::pruneNoteContentFromGame($gameId, $surrogate, $editorId, $editorToken); return $TBD; }