5require_once(dirname(__FILE__).
"/../../../../Services/ActiveRecord/class.ActiveRecord.php");
24 return "prg_usr_assignments";
103 throw new ilException(
"ilStudyProgrammeAssignment::createFor: '$a_usr_id' "
104 .
"is no id of a user.");
109 ->setUserId($a_usr_id)
110 ->setLastChangeBy($a_assigning_usr_id)
135 $this->root_prg_id = $a_id;
149 $this->usr_id = $a_usr_id;
172 throw new ilException(
"ilStudyProgrammeAssignment::setLastChangeBy: '$a_usr_id' "
173 .
"is no id of a user.");
175 $this->last_change_by = $a_usr_id;
209 throw new ilException(
"ilStudyProgrammeAssignment::setLastChange: Given "
210 .
"timestamp is before current timestamp. That "
211 .
"is logically impossible.");
@classDescription Date and time handling
get($a_format, $a_format_str='', $a_tz='')
get formatted date
static _before(ilDateTime $start, ilDateTime $end, $a_compare_field='', $a_tz='')
compare two dates and check start is before end This method does not consider tz offsets.
Base class for ILIAS Exception handling.
static _lookupType($a_id, $a_reference=false)
lookup object type
Class ilStudyProgrammeAssignment.
getUserId()
Get the id of the user who is assigned.
updateLastChange()
Update the last change timestamp to the current time.
getId()
Get the id of the assignment.
setLastChange(ilDateTime $a_timestamp)
Set the last change timestamp to the given time.
static returnDbTableName()
setLastChangeBy($a_usr_id)
Set the id of the user who did the last change on this assignment.
static createFor(ilStudyProgramme $a_prg, $a_usr_id, $a_assigning_usr_id)
Create new assignment object for study program and user.
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.
getLastChangeBy()
Get the id of the user who did the last change on this assignment.
getObjId()
Get the id of the study program.
static now()
Return current timestamp in Y-m-d H:i:s format.