getUser($request))) { throw new AuthorizationFailedException(); } list($offset, $limit) = $this->getOffsetAndLimit(); $resources = StructuralElement::findBySQL('1 ORDER BY mkdate LIMIT ? OFFSET ?', [$limit, $offset]); return $this->getPaginatedContentResponse($resources, count($resources)); } }