getUser($request))) { throw new AuthorizationFailedException(); } list($offset, $limit) = $this->getOffsetAndLimit(); $total = \LtiTool::countBySql('1'); $tools = \LtiTool::findBySQL("1 ORDER BY `name` LIMIT ?, ?", [$offset, $limit]); return $this->getPaginatedContentResponse($tools, $total); } }