1<?
php declare(strict_types = 1);
111 $this->root_prg_id =
$id;
157 $is_auto_assignment = in_array($assigned_by_id, $auto_assignment);
160 if (!$is_auto_assignment && ($exists && !$is_usr)) {
161 throw new ilException(
"ilStudyProgrammeAssignment::setLastChangeBy: '$assigned_by_id' "
162 .
"is neither a user's id nor a valid membership source.");
165 $this->last_change_by = $assigned_by_id;
176 return DateTime::createFromFormat(self::DATE_TIME_FORMAT, $this->last_change);
197 $this->last_change =
$timestamp->format(self::DATE_TIME_FORMAT);
206 $this->restart_date = $date;
225 $this->restarted_asssignment_id =
$id;
foreach($mandatory_scripts as $file) $timestamp
An exception for terminatinating execution or to throw for unit testing.
Base class for ILIAS Exception handling.
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data@access public
static _lookupType($a_id, $a_reference=false)
lookup object type
Class ilStudyProgrammeAssignment.
const AUTO_ASSIGNED_BY_COURSE
getUserId()
Get the id of the user who is assigned.
const AUTO_ASSIGNED_BY_ORGU
updateLastChange()
Update the last change timestamp to the current time.
getId()
Get the id of the assignment.
setLastChangeBy(int $assigned_by_id)
Set the id of the user who did the last change on this assignment.
const AUTO_ASSIGNED_BY_ROLE
getRestartDate()
Get the date, at which the user is to be reassigned to the programme.
const AUTO_ASSIGNED_BY_GROUP
getLastChange()
Get the timestamp of the last change on this program or a sub program.
getRootId()
Get the object id of the program the user was assigned to.
setRestartedAssignmentId(int $id)
Set the id of the assignment which was intiated due to expiring progress of this assignment.
$restarted_asssignment_id
setLastChange(DateTime $timestamp)
Set the last change timestamp to the given time.
const NO_RESTARTED_ASSIGNMENT
setRestartDate(DateTime $date=null)
Set the date, at which the user is to be reassigned to the programme.
getLastChangeBy()
Get the id of the user who did the last change on this assignment.
getRestartedAssignmentId()
Get the id of the assignment which was intiated due to expiring progress of this assignment.