72 private ?
int $id =
null;
95 $this->ltiResultSourcedId =
null;
96 $this->created =
null;
97 $this->updated =
null;
107 if (!is_null($this->resourceLinkId)) {
121 public function delete():
bool
135 if (is_null($this->resourceLink) && !is_null($this->resourceLinkId)) {
176 $this->resourceLink =
null;
205 public function getId(
int $idScope =
null,
Platform $platform =
null): string
211 if (!is_null($platform)) {
212 $key = $platform->getId();
215 $idScope = $this->resourceLink->getPlatform()->idScope;
217 if (is_null($idScope)) {
225 if ($this->resourceLink->getContext() && $this->resourceLink->getContext()->ltiContextId) {
231 if (!is_null($this->resourceLink) && !empty($this->resourceLink->ltiResourceLinkId)) {
254 $userresult->load(
$id);