ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilExAssignmentEditorGUI. More...
Public Member Functions | |
__construct ($a_exercise_id, $a_enable_peer_review_completion_settings, ilExAssignment $a_ass=null) | |
Constructor. More... | |
executeCommand () | |
listAssignmentsObject () | |
List assignments. More... | |
addAssignmentObject () | |
Create assignment. More... | |
saveAssignmentObject () | |
Save assignment. More... | |
editAssignmentObject () | |
Edit assignment. More... | |
getAssignmentValues (ilPropertyFormGUI $a_form) | |
Get current values for assignment from. More... | |
updateAssignmentObject () | |
Update assignment. More... | |
confirmAssignmentsDeletionObject () | |
Confirm assignments deletion. More... | |
deleteAssignmentsObject () | |
Delete assignments. More... | |
saveAssignmentOrderObject () | |
Save assignments order. More... | |
orderAssignmentsByDeadlineObject () | |
Order by deadline. More... | |
setAssignmentHeader () | |
Set assignment header. More... | |
downloadGlobalFeedbackFileObject () | |
editPeerReviewObject (ilPropertyFormGUI $a_form=null) | |
validationTeamsFormation ($a_num_teams, $a_min_participants, $a_max_participants) | |
getExerciseTotalMembers () | |
Get the total number of exercise members. More... | |
generateTeams (ilExAssignment $a_assignment, $a_input) | |
Protected Member Functions | |
getTypeDropdown () | |
Get type selection dropdown. More... | |
initAssignmentForm ($a_type, $a_mode="create") | |
Init assignment form. More... | |
processForm (ilPropertyFormGUI $a_form) | |
Custom form validation. More... | |
importFormToAssignment (ilExAssignment $a_ass, array $a_input) | |
Import form values to assignment. More... | |
importFormToAssignmentReminders ($a_input, $a_ass_id) | |
importPeerReviewFormToAssignmentReminders ($a_input, $a_ass_id) | |
saveReminderData (ilExAssignmentReminder $reminder, $a_input) | |
setDisabledFieldValues (ilPropertyFormGUI $a_form) | |
handleDisabledFields (ilPropertyFormGUI $a_form, $a_force_set_values=false) | |
initPeerReviewForm () | |
getPeerReviewValues ($a_form) | |
setDisabledPeerReviewFieldValues (ilPropertyFormGUI $a_form) | |
handleDisabledPeerFields (ilPropertyFormGUI $a_form, $a_force_set_values=false) | |
processPeerReviewForm (ilPropertyFormGUI $a_form) | |
importPeerReviewFormToAssignment (ilExAssignment $a_ass, array $a_input) | |
updatePeerReviewObject () | |
Protected Attributes | |
$ctrl | |
$tabs | |
$lng | |
$tpl | |
$toolbar | |
$settings | |
$help | |
$exercise_id | |
$assignment | |
$enable_peer_review_completion | |
$types | |
Class ilExAssignmentEditorGUI.
ilExAssignmentEditorGUI: ilExAssignmentFileSystemGUI, ilExPeerReviewGUI, ilPropertyFormGUI
Definition at line 17 of file class.ilExAssignmentEditorGUI.php.
ilExAssignmentEditorGUI::__construct | ( | $a_exercise_id, | |
$a_enable_peer_review_completion_settings, | |||
ilExAssignment | $a_ass = null |
||
) |
Constructor.
int | $a_exercise_id | |
bool | $a_enable_peer_review_completion_settings | |
ilExAssignment | $a_ass |
Definition at line 82 of file class.ilExAssignmentEditorGUI.php.
References $DIC, ilExAssignmentTypes\getInstance(), ilExAssignmentTypesGUI\getInstance(), and settings().
ilExAssignmentEditorGUI::addAssignmentObject | ( | ) |
Create assignment.
Definition at line 182 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $form, $ilCtrl, $tpl, and initAssignmentForm().
ilExAssignmentEditorGUI::confirmAssignmentsDeletionObject | ( | ) |
Confirm assignments deletion.
Definition at line 1207 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $i, $ilCtrl, $lng, $tpl, ilExAssignment\lookupTitle(), and ilUtil\sendFailure().
ilExAssignmentEditorGUI::deleteAssignmentsObject | ( | ) |
Delete assignments.
Definition at line 1235 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $id, $ilCtrl, $lng, and ilUtil\stripSlashes().
ilExAssignmentEditorGUI::downloadGlobalFeedbackFileObject | ( | ) |
Definition at line 1328 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $ilCtrl, and ilUtil\deliverFile().
ilExAssignmentEditorGUI::editAssignmentObject | ( | ) |
Edit assignment.
Definition at line 998 of file class.ilExAssignmentEditorGUI.php.
References $form, $tabs, $tpl, getAssignmentValues(), initAssignmentForm(), and setAssignmentHeader().
ilExAssignmentEditorGUI::editPeerReviewObject | ( | ilPropertyFormGUI | $a_form = null | ) |
Definition at line 1481 of file class.ilExAssignmentEditorGUI.php.
References $tabs, $tpl, getPeerReviewValues(), initPeerReviewForm(), and setAssignmentHeader().
ilExAssignmentEditorGUI::executeCommand | ( | ) |
Definition at line 102 of file class.ilExAssignmentEditorGUI.php.
References $_GET, $ctrl, $form, $ilCtrl, $lng, $tabs, ilFSWebStorageExercise\create(), initAssignmentForm(), setAssignmentHeader(), and ilFileSystemGUI\setTitle().
ilExAssignmentEditorGUI::generateTeams | ( | ilExAssignment | $a_assignment, |
$a_input | |||
) |
ilExAssignment | $a_assignment | |
array | $a_input |
Definition at line 1786 of file class.ilExAssignmentEditorGUI.php.
References ilExAssignmentTeam\adoptTeams(), ilExAssignmentTeam\getAssignmentTeamMap(), ilExAssignment\getAssignmentType(), ilExAssignment\getId(), ilUtil\sendInfo(), ilExAssignment\TEAMS_FORMED_BY_ASSIGNMENT, ilExAssignment\TEAMS_FORMED_BY_RANDOM, and ilExAssignment\TEAMS_FORMED_BY_TUTOR.
Referenced by saveAssignmentObject(), and updateAssignmentObject().
ilExAssignmentEditorGUI::getAssignmentValues | ( | ilPropertyFormGUI | $a_form | ) |
Get current values for assignment from.
Definition at line 1014 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $ilCtrl, $lng, $values, ilPropertyFormGUI\getItemByPostVar(), ilExAssignmentReminder\GRADE_REMINDER, handleDisabledFields(), IL_CAL_UNIX, ilPropertyFormGUI\setValuesByArray(), and ilExAssignmentReminder\SUBMIT_REMINDER.
Referenced by editAssignmentObject().
ilExAssignmentEditorGUI::getExerciseTotalMembers | ( | ) |
Get the total number of exercise members.
Definition at line 1774 of file class.ilExAssignmentEditorGUI.php.
References $exercise.
Referenced by initAssignmentForm(), and validationTeamsFormation().
|
protected |
Definition at line 1497 of file class.ilExAssignmentEditorGUI.php.
References $exercise_id, $values, ilExAssignmentReminder\FEEDBACK_REMINDER, handleDisabledPeerFields(), and IL_CAL_UNIX.
Referenced by editPeerReviewObject().
|
protected |
Get type selection dropdown.
Definition at line 203 of file class.ilExAssignmentEditorGUI.php.
References $lng, $t, $types, and ilSelectInputGUI\setOptions().
Referenced by initAssignmentForm(), and listAssignmentsObject().
|
protected |
Definition at line 1127 of file class.ilExAssignmentEditorGUI.php.
References ilPropertyFormGUI\getItemByPostVar(), and setDisabledFieldValues().
Referenced by getAssignmentValues(), and updateAssignmentObject().
|
protected |
Definition at line 1546 of file class.ilExAssignmentEditorGUI.php.
References ilPropertyFormGUI\addItem(), ilPropertyFormGUI\getItemByPostVar(), and setDisabledPeerReviewFieldValues().
Referenced by getPeerReviewValues(), and updatePeerReviewObject().
|
protected |
Import form values to assignment.
ilExAssignment | $a_ass | |
array | $a_input |
Definition at line 853 of file class.ilExAssignmentEditorGUI.php.
References ilExAssignment\deleteGlobalFeedbackFile(), ilExAssignment\getId(), ilExAssignment\handleGlobalFeedbackFileUpload(), importFormToAssignmentReminders(), ilExAssignment\PEER_REVIEW_VALID_NONE, ilExAssignment\save(), ilExAssignment\setDeadline(), ilExAssignment\setDeadlineMode(), ilExAssignment\setExtendedDeadline(), ilExAssignment\setFeedbackCron(), ilExAssignment\setFeedbackDate(), ilExAssignment\setFeedbackDateCustom(), ilExAssignment\setFeedbackFile(), ilExAssignment\setInstruction(), ilExAssignment\setMandatory(), ilExAssignment\setMaxFile(), ilExAssignment\setPeerReview(), ilExAssignment\setPeerReviewFileUpload(), ilExAssignment\setPeerReviewMin(), ilExAssignment\setPeerReviewPersonalized(), ilExAssignment\setPeerReviewRating(), ilExAssignment\setPeerReviewSimpleUnlock(), ilExAssignment\setPeerReviewText(), ilExAssignment\setPeerReviewValid(), ilExAssignment\setRelativeDeadline(), ilExAssignment\setStartTime(), ilExAssignment\setTeamTutor(), ilExAssignment\setTitle(), ilExAssignment\update(), and ilExAssignment\uploadAssignmentFiles().
Referenced by saveAssignmentObject(), and updateAssignmentObject().
|
protected |
Definition at line 922 of file class.ilExAssignmentEditorGUI.php.
References ilExAssignmentReminder\GRADE_REMINDER, saveReminderData(), and ilExAssignmentReminder\SUBMIT_REMINDER.
Referenced by importFormToAssignment().
|
protected |
Definition at line 1673 of file class.ilExAssignmentEditorGUI.php.
References ilExAssignment\getId(), importPeerReviewFormToAssignmentReminders(), ilExAssignment\PEER_REVIEW_VALID_NONE, ilExAssignment\setPeerReviewChars(), ilExAssignment\setPeerReviewCriteriaCatalogue(), ilExAssignment\setPeerReviewDeadline(), ilExAssignment\setPeerReviewFileUpload(), ilExAssignment\setPeerReviewMin(), ilExAssignment\setPeerReviewPersonalized(), ilExAssignment\setPeerReviewRating(), ilExAssignment\setPeerReviewSimpleUnlock(), ilExAssignment\setPeerReviewText(), ilExAssignment\setPeerReviewValid(), and ilExAssignment\update().
Referenced by updatePeerReviewObject().
|
protected |
Definition at line 932 of file class.ilExAssignmentEditorGUI.php.
References ilExAssignmentReminder\FEEDBACK_REMINDER, and saveReminderData().
Referenced by importPeerReviewFormToAssignment().
|
protected |
Init assignment form.
int | $a_type | |
int | $a_mode | "create"/"edit" |
Definition at line 224 of file class.ilExAssignmentEditorGUI.php.
References $a_type, $context, $ctrl, $DIC, $files, $form, $id, $ilCtrl, $lng, PHPMailer\PHPMailer\$options, $template, ilSubEnabledFormPropertyGUI\addSubItem(), ilRadioOption\addSubItem(), exit, ilExAssignment\FEEDBACK_DATE_CUSTOM, ilExAssignment\FEEDBACK_DATE_DEADLINE, ilExAssignment\FEEDBACK_DATE_SUBMISSION, ilExAssignmentReminder\FEEDBACK_REMINDER, ilExAssignmentTeam\getAdoptableTeamAssignments(), ilExAssignmentTeam\getAssignmentTeamMap(), getExerciseTotalMembers(), getTypeDropdown(), ilExAssignmentReminder\GRADE_REMINDER, ilFormPropertyGUI\setInfo(), ilNumberInputGUI\setMaxLength(), ilTextInputGUI\setMaxLength(), ilFormPropertyGUI\setRequired(), ilTextAreaInputGUI\setRows(), ilDateTimeInputGUI\setShowTime(), ilNumberInputGUI\setSize(), ilRadioGroupInputGUI\setValue(), ilExAssignmentReminder\SUBMIT_REMINDER, ilExAssignment\TEAMS_FORMED_BY_ASSIGNMENT, ilExAssignment\TEAMS_FORMED_BY_PARTICIPANTS, ilExAssignment\TEAMS_FORMED_BY_RANDOM, and ilExAssignment\TEAMS_FORMED_BY_TUTOR.
Referenced by addAssignmentObject(), editAssignmentObject(), executeCommand(), saveAssignmentObject(), and updateAssignmentObject().
|
protected |
Definition at line 1345 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $def, $form, $ilCtrl, $lng, $url, ilRadioGroupInputGUI\addOption(), ilSubEnabledFormPropertyGUI\addSubItem(), ilExAssignmentReminder\FEEDBACK_REMINDER, ilExcCriteriaCatalogue\getInstancesByParentId(), ilExcCriteria\getInstancesByParentId(), ilExAssignment\PEER_REVIEW_VALID_ALL, ilExAssignment\PEER_REVIEW_VALID_NONE, ilExAssignment\PEER_REVIEW_VALID_ONE, ilRadioOption\setInfo(), ilFormPropertyGUI\setInfo(), ilFormPropertyGUI\setRequired(), and ilNumberInputGUI\setSize().
Referenced by editPeerReviewObject(), and updatePeerReviewObject().
ilExAssignmentEditorGUI::listAssignmentsObject | ( | ) |
List assignments.
Definition at line 155 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $ilCtrl, $lng, $t, $toolbar, $tpl, ilSubmitButton\getInstance(), and getTypeDropdown().
ilExAssignmentEditorGUI::orderAssignmentsByDeadlineObject | ( | ) |
Order by deadline.
Definition at line 1273 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $ilCtrl, $lng, and ilExAssignment\orderAssByDeadline().
|
protected |
Custom form validation.
ilPropertyFormGUI | $a_form |
Definition at line 592 of file class.ilExAssignmentEditorGUI.php.
References $lng, $res, $time_start, $type, $valid, ilPropertyFormGUI\checkInput(), ilExAssignment\DEADLINE_ABSOLUTE, ilExAssignment\DEADLINE_RELATIVE, ilExAssignment\FEEDBACK_DATE_DEADLINE, ilPropertyFormGUI\getInput(), ilPropertyFormGUI\getItemByPostVar(), IL_CAL_UNIX, ilUtil\sendFailure(), ilExAssignment\TEAMS_FORMED_BY_ASSIGNMENT, ilExAssignment\TEAMS_FORMED_BY_RANDOM, ilExAssignment\TEAMS_FORMED_BY_TUTOR, and validationTeamsFormation().
Referenced by saveAssignmentObject(), and updateAssignmentObject().
|
protected |
Definition at line 1581 of file class.ilExAssignmentEditorGUI.php.
References $lng, $res, $valid, ilPropertyFormGUI\checkInput(), ilPropertyFormGUI\getInput(), ilPropertyFormGUI\getItemByPostVar(), IL_CAL_UNIX, and ilUtil\sendFailure().
Referenced by updatePeerReviewObject().
ilExAssignmentEditorGUI::saveAssignmentObject | ( | ) |
Save assignment.
Definition at line 958 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $form, $ilCtrl, $input, $lng, $tpl, generateTeams(), importFormToAssignment(), initAssignmentForm(), and processForm().
ilExAssignmentEditorGUI::saveAssignmentOrderObject | ( | ) |
Save assignments order.
Definition at line 1259 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $ilCtrl, $lng, and ilExAssignment\saveAssOrderOfExercise().
|
protected |
Definition at line 938 of file class.ilExAssignmentEditorGUI.php.
References $action, $type, ilExAssignmentReminder\getReminderStatus(), ilExAssignmentReminder\getReminderType(), ilExAssignmentReminder\setReminderEnd(), ilExAssignmentReminder\setReminderFrequency(), ilExAssignmentReminder\setReminderMailTemplate(), ilExAssignmentReminder\setReminderStart(), and ilExAssignmentReminder\setReminderStatus().
Referenced by importFormToAssignmentReminders(), and importPeerReviewFormToAssignmentReminders().
ilExAssignmentEditorGUI::setAssignmentHeader | ( | ) |
Set assignment header.
Definition at line 1287 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $help, $ilCtrl, $lng, $tabs, and $tpl.
Referenced by editAssignmentObject(), editPeerReviewObject(), executeCommand(), updateAssignmentObject(), and updatePeerReviewObject().
|
protected |
Definition at line 1107 of file class.ilExAssignmentEditorGUI.php.
References ilPropertyFormGUI\getItemByPostVar(), IL_CAL_UNIX, and ilDateTime\setDate().
Referenced by handleDisabledFields().
|
protected |
Definition at line 1521 of file class.ilExAssignmentEditorGUI.php.
References ilPropertyFormGUI\getItemByPostVar().
Referenced by handleDisabledPeerFields().
ilExAssignmentEditorGUI::updateAssignmentObject | ( | ) |
Update assignment.
Definition at line 1160 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $form, $ilCtrl, $input, $lng, $tabs, $tpl, generateTeams(), handleDisabledFields(), importFormToAssignment(), initAssignmentForm(), processForm(), and setAssignmentHeader().
|
protected |
Definition at line 1698 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $form, $ilCtrl, $input, $lng, $tabs, $tpl, handleDisabledPeerFields(), importPeerReviewFormToAssignment(), initPeerReviewForm(), processPeerReviewForm(), and setAssignmentHeader().
ilExAssignmentEditorGUI::validationTeamsFormation | ( | $a_num_teams, | |
$a_min_participants, | |||
$a_max_participants | |||
) |
$a_num_teams | integer |
$a_min_participants | integer |
$a_max_participants | integer |
Definition at line 1732 of file class.ilExAssignmentEditorGUI.php.
References $message, and getExerciseTotalMembers().
Referenced by processForm().
|
protected |
Definition at line 62 of file class.ilExAssignmentEditorGUI.php.
|
protected |
Definition at line 22 of file class.ilExAssignmentEditorGUI.php.
Referenced by addAssignmentObject(), confirmAssignmentsDeletionObject(), deleteAssignmentsObject(), downloadGlobalFeedbackFileObject(), executeCommand(), getAssignmentValues(), initAssignmentForm(), initPeerReviewForm(), listAssignmentsObject(), orderAssignmentsByDeadlineObject(), saveAssignmentObject(), saveAssignmentOrderObject(), setAssignmentHeader(), updateAssignmentObject(), and updatePeerReviewObject().
|
protected |
Definition at line 67 of file class.ilExAssignmentEditorGUI.php.
|
protected |
Definition at line 57 of file class.ilExAssignmentEditorGUI.php.
Referenced by getPeerReviewValues().
|
protected |
Definition at line 52 of file class.ilExAssignmentEditorGUI.php.
Referenced by setAssignmentHeader().
|
protected |
Definition at line 32 of file class.ilExAssignmentEditorGUI.php.
Referenced by confirmAssignmentsDeletionObject(), deleteAssignmentsObject(), executeCommand(), getAssignmentValues(), getTypeDropdown(), initAssignmentForm(), initPeerReviewForm(), listAssignmentsObject(), orderAssignmentsByDeadlineObject(), processForm(), processPeerReviewForm(), saveAssignmentObject(), saveAssignmentOrderObject(), setAssignmentHeader(), updateAssignmentObject(), and updatePeerReviewObject().
|
protected |
Definition at line 47 of file class.ilExAssignmentEditorGUI.php.
|
protected |
Definition at line 27 of file class.ilExAssignmentEditorGUI.php.
Referenced by editAssignmentObject(), editPeerReviewObject(), executeCommand(), setAssignmentHeader(), updateAssignmentObject(), and updatePeerReviewObject().
|
protected |
Definition at line 42 of file class.ilExAssignmentEditorGUI.php.
Referenced by listAssignmentsObject().
|
protected |
Definition at line 37 of file class.ilExAssignmentEditorGUI.php.
Referenced by addAssignmentObject(), confirmAssignmentsDeletionObject(), editAssignmentObject(), editPeerReviewObject(), listAssignmentsObject(), saveAssignmentObject(), setAssignmentHeader(), updateAssignmentObject(), and updatePeerReviewObject().
|
protected |
Definition at line 72 of file class.ilExAssignmentEditorGUI.php.
Referenced by getTypeDropdown().