36 public static string $SCOPE =
'https://purl.imsglobal.org/spec/lti-ags/scope/result.readonly';
73 $this->scope = self::$SCOPE;
74 $this->mediaType =
'application/vnd.ims.lis.v2.resultcontainer+json';
82 public function getAll(
int $limit = null)
85 if (is_null($limit)) {
88 if (is_null($limit)) {
89 $limit = self::$defaultLimit;
100 if (!empty(
$http->responseJson)) {
101 foreach (
$http->responseJson as $outcome) {
102 $outcomes[] = self::getOutcome($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)) {
130 $outcome = self::getOutcome(reset(
$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
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)