getServiceLocator()->get(UserLanguageService::class); return $userLanguageService->getDataLanguage($this->findTestTaker($deliveryUri, $resultId)); } /** * @param $deliveryUri * @param $resultId * @return User * * @throws common_exception_Error */ private function findTestTaker($deliveryUri, $resultId) { /** @var ResultServerService $resultServerService */ $resultServerService = $this->getServiceLocator()->get(ResultServerService::SERVICE_ID); $resultStorage = $resultServerService->getResultStorage($deliveryUri); $userId = $resultStorage->getTestTaker($resultId); /** @var tao_models_classes_UserService $userService */ $userService = $this->getServiceLocator()->get(tao_models_classes_UserService::SERVICE_ID); return $userService->getUserById($userId); } }