get("user_id"); $limit = NULL; if ($params->exists(["limit"])) { $limit = $params->get("limit"); } $finished = NULL; if ($params->exists(["finished"])) { $finished = $params->get("finished"); } $visible = NULL; if ($params->exists(["visible"])) { $visible = $params->get("visible"); } $records = getRecords($user_id, $limit, $finished, $visible); $json = new JsonBuilder(); $json->addRecords($records); respondJson($json); } } $branch = new GetRecordsBranch(); $branch->execute();