1<?
php declare(strict_types = 1);
102 if ($this->last_change) {
103 return DateTimeImmutable::createFromFormat(self::DATE_TIME_FORMAT, $this->last_change);
118 "Cannot set last change to an earlier date:"
119 .
"\ncurrent: " . $this->
getLastChange()->format(self::DATE_TIME_FORMAT)
120 .
"\nnew: " . $new_date,
124 $clone = clone $this;
125 $clone->last_change = $new_date;
132 return $this->restart_date;
137 return $this->restarted_asssignment_id;
141 int $restarted_asssignment_id,
142 DateTimeImmutable $restart_date =
null
144 $clone = clone $this;
145 $clone->restarted_asssignment_id = $restarted_asssignment_id;
146 $clone->restart_date = $restart_date;
foreach($mandatory_scripts as $file) $timestamp
An exception for terminatinating execution or to throw for unit testing.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Represents one assignment of the user to a program tree.
const AUTO_ASSIGNED_BY_COURSE
const AUTO_ASSIGNED_BY_ORGU
const AUTO_ASSIGNED_BY_ROLE
const AUTO_ASSIGNED_BY_GROUP
withRootId(int $root_prg_id)
withLastChange(int $last_change_by, DateTimeImmutable $timestamp)
$restarted_asssignment_id
const NO_RESTARTED_ASSIGNMENT
withRestarted(int $restarted_asssignment_id, DateTimeImmutable $restart_date=null)
getRestartedAssignmentId()