36 public static string $SCOPE =
'https://purl.imsglobal.org/spec/lti-ags/scope/result.readonly';
74 $this->mediaType =
'application/vnd.ims.lis.v2.resultcontainer+json';
100 if (!empty(
$http->responseJson)) {
101 foreach (
$http->responseJson as $outcome) {
105 if (!$this->pagingMode &&
$http->hasRelativeLink(
'next')) {
107 $this->endpoint =
$url;
124 public function get(
User $user)
126 $params = array(
'user_id' => $user->ltiUserId);
129 if (!empty(
$http->responseJson)) {
147 $outcome->ltiUserId = $json->userId;
148 if (isset($json->resultScore)) {
149 $outcome->setValue($json->resultScore);
151 if (isset($json->resultMaximum)) {
152 $outcome->setPointsPossible($json->resultMaximum);
154 if (isset($json->comment)) {
155 $outcome->comment = $json->comment;
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Class ChatMainBarProvider \MainMenu\Provider.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...