6 declare(strict_types = 1);
35 self::MODE_LP_COMPLETED
124 $this->obj_id = $a_id;
149 return DateTime::createFromFormat(self::DATE_TIME_FORMAT, $this->last_change);
173 $this->last_change = $a_timestamp->format(self::DATE_TIME_FORMAT);
187 $a_mode = (int) $a_mode;
188 if (!in_array($a_mode, self::$MODES)) {
189 throw new ilException(
"ilStudyProgramme::setLPMode: No lp mode: " 192 $this->lp_mode = $a_mode;
215 $clone = clone $this;
228 $clone = clone $this;
230 $clone->updateLastChange();
242 $clone = clone $this;
255 $clone = clone $this;
274 $clone = clone $this;
$validity_of_qualification_settings
setLastChange(DateTime $a_timestamp)
Set the last change timestamp to the given time.
getLastChange()
Get the timestamp of the last change on this program or a sub program.
const NO_VALIDITY_OF_QUALIFICATION_PERIOD
updateLastChange()
Update the last change timestamp to the current time.
setLPMode(int $a_mode)
Set the lp mode.
withAutoMailSettings(\ilStudyProgrammeAutoMailSettings $automail_settings)
getValidityOfQualificationSettings()
withTypeSettings(\ilStudyProgrammeTypeSettings $type_settings)
withValidityOfQualificationSettings(\ilStudyProgrammeValidityOfAchievedQualificationSettings $validity_of_qualification_settings)
getObjId()
Get the id of the study program.
withAssessmentSettings(\ilStudyProgrammeAssessmentSettings $assessment_settings)
withDeadlineSettings(\ilStudyProgrammeDeadlineSettings $deadline_settings)
getLPMode()
Get the lp mode.
__construct(int $a_id, \ilStudyProgrammeTypeSettings $type_settings, \ilStudyProgrammeAssessmentSettings $assessment_settings, \ilStudyProgrammeDeadlineSettings $deadline_settings, \ilStudyProgrammeValidityOfAchievedQualificationSettings $validity_of_qualification_settings, \ilStudyProgrammeAutoMailSettings $automail_settings)