ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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 | |
$random_manager | |
$exc | |
Class ilExAssignmentEditorGUI.
ilExAssignmentEditorGUI: ilExAssignmentFileSystemGUI, ilExPeerReviewGUI, ilPropertyFormGUI
Definition at line 14 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 90 of file class.ilExAssignmentEditorGUI.php.
References $DIC, ilExAssignmentTypesGUI\getInstance(), ilExAssignmentTypes\getInstance(), help(), and settings().
ilExAssignmentEditorGUI::addAssignmentObject | ( | ) |
Create assignment.
Definition at line 187 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $tpl, and initAssignmentForm().
ilExAssignmentEditorGUI::confirmAssignmentsDeletionObject | ( | ) |
Confirm assignments deletion.
Definition at line 1241 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $i, $lng, $tpl, ilExAssignment\lookupTitle(), and ilUtil\sendFailure().
ilExAssignmentEditorGUI::deleteAssignmentsObject | ( | ) |
Delete assignments.
Definition at line 1268 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $lng, and ilUtil\stripSlashes().
ilExAssignmentEditorGUI::downloadGlobalFeedbackFileObject | ( | ) |
Definition at line 1361 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, and ilUtil\deliverFile().
ilExAssignmentEditorGUI::editAssignmentObject | ( | ) |
Edit assignment.
Definition at line 1031 of file class.ilExAssignmentEditorGUI.php.
References $tabs, $tpl, getAssignmentValues(), initAssignmentForm(), and setAssignmentHeader().
ilExAssignmentEditorGUI::editPeerReviewObject | ( | ilPropertyFormGUI | $a_form = null | ) |
Definition at line 1511 of file class.ilExAssignmentEditorGUI.php.
References $tabs, $tpl, getPeerReviewValues(), initPeerReviewForm(), and setAssignmentHeader().
ilExAssignmentEditorGUI::executeCommand | ( | ) |
Definition at line 113 of file class.ilExAssignmentEditorGUI.php.
References $_GET, $ctrl, $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 1814 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 1047 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $lng, ilPropertyFormGUI\getItemByPostVar(), ilExAssignmentReminder\getReminderStatus(), 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 1802 of file class.ilExAssignmentEditorGUI.php.
References $exercise.
Referenced by initAssignmentForm(), and validationTeamsFormation().
|
protected |
Definition at line 1527 of file class.ilExAssignmentEditorGUI.php.
References $exercise_id, ilExAssignmentReminder\FEEDBACK_REMINDER, ilExAssignmentReminder\getReminderStatus(), handleDisabledPeerFields(), and IL_CAL_UNIX.
Referenced by editPeerReviewObject().
|
protected |
Get type selection dropdown.
Definition at line 208 of file class.ilExAssignmentEditorGUI.php.
Referenced by initAssignmentForm(), and listAssignmentsObject().
|
protected |
Definition at line 1162 of file class.ilExAssignmentEditorGUI.php.
References ilPropertyFormGUI\getItemByPostVar(), and setDisabledFieldValues().
Referenced by getAssignmentValues(), and updateAssignmentObject().
|
protected |
Definition at line 1576 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 881 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\setRelDeadlineLastSubmission(), ilExAssignment\setStartTime(), ilExAssignment\setTeamTutor(), ilExAssignment\setTitle(), ilExAssignment\update(), and ilExAssignment\uploadAssignmentFiles().
Referenced by saveAssignmentObject(), and updateAssignmentObject().
|
protected |
Definition at line 955 of file class.ilExAssignmentEditorGUI.php.
References ilExAssignmentReminder\GRADE_REMINDER, saveReminderData(), and ilExAssignmentReminder\SUBMIT_REMINDER.
Referenced by importFormToAssignment().
|
protected |
Definition at line 1701 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 965 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 229 of file class.ilExAssignmentEditorGUI.php.
References $context, $ctrl, $DIC, $lng, ilObjAdvancedEditing\_getRichTextEditor(), 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, ilFileWizardInputGUI\setFilenames(), ilFormPropertyGUI\setInfo(), ilNumberInputGUI\setMaxLength(), ilFormPropertyGUI\setRequired(), ilTextAreaInputGUI\setRows(), ilDateTimeInputGUI\setShowTime(), ilNumberInputGUI\setSize(), ilRadioGroupInputGUI\setValue(), ilNonEditableValueGUI\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 1378 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $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 163 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $lng, $toolbar, $tpl, ilSubmitButton\getInstance(), and getTypeDropdown().
ilExAssignmentEditorGUI::orderAssignmentsByDeadlineObject | ( | ) |
Order by deadline.
Definition at line 1306 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $lng, and ilExAssignment\orderAssByDeadline().
|
protected |
Custom form validation.
ilPropertyFormGUI | $a_form |
Definition at line 614 of file class.ilExAssignmentEditorGUI.php.
References $lng, $res, $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 1610 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 991 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $lng, $tpl, generateTeams(), importFormToAssignment(), initAssignmentForm(), and processForm().
ilExAssignmentEditorGUI::saveAssignmentOrderObject | ( | ) |
Save assignments order.
Definition at line 1292 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $lng, and ilExAssignment\saveAssOrderOfExercise().
|
protected |
Definition at line 971 of file class.ilExAssignmentEditorGUI.php.
References $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 1320 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $help, $lng, $tabs, and $tpl.
Referenced by editAssignmentObject(), editPeerReviewObject(), executeCommand(), updateAssignmentObject(), and updatePeerReviewObject().
|
protected |
Definition at line 1142 of file class.ilExAssignmentEditorGUI.php.
References ilPropertyFormGUI\getItemByPostVar(), IL_CAL_UNIX, and ilDateTime\setDate().
Referenced by handleDisabledFields().
|
protected |
Definition at line 1551 of file class.ilExAssignmentEditorGUI.php.
References ilPropertyFormGUI\getItemByPostVar().
Referenced by handleDisabledPeerFields().
ilExAssignmentEditorGUI::updateAssignmentObject | ( | ) |
Update assignment.
Definition at line 1194 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $lng, $tabs, $tpl, generateTeams(), handleDisabledFields(), importFormToAssignment(), initAssignmentForm(), processForm(), and setAssignmentHeader().
|
protected |
Definition at line 1726 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $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 1760 of file class.ilExAssignmentEditorGUI.php.
References $message, and getExerciseTotalMembers().
Referenced by processForm().
|
protected |
Definition at line 59 of file class.ilExAssignmentEditorGUI.php.
|
protected |
Definition at line 19 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 64 of file class.ilExAssignmentEditorGUI.php.
|
protected |
Definition at line 80 of file class.ilExAssignmentEditorGUI.php.
|
protected |
Definition at line 54 of file class.ilExAssignmentEditorGUI.php.
Referenced by getPeerReviewValues().
|
protected |
Definition at line 49 of file class.ilExAssignmentEditorGUI.php.
Referenced by setAssignmentHeader().
|
protected |
Definition at line 29 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 75 of file class.ilExAssignmentEditorGUI.php.
|
protected |
Definition at line 44 of file class.ilExAssignmentEditorGUI.php.
|
protected |
Definition at line 24 of file class.ilExAssignmentEditorGUI.php.
Referenced by editAssignmentObject(), editPeerReviewObject(), executeCommand(), setAssignmentHeader(), updateAssignmentObject(), and updatePeerReviewObject().
|
protected |
Definition at line 39 of file class.ilExAssignmentEditorGUI.php.
Referenced by listAssignmentsObject().
|
protected |
Definition at line 34 of file class.ilExAssignmentEditorGUI.php.
Referenced by addAssignmentObject(), confirmAssignmentsDeletionObject(), editAssignmentObject(), editPeerReviewObject(), listAssignmentsObject(), saveAssignmentObject(), setAssignmentHeader(), updateAssignmentObject(), and updatePeerReviewObject().
|
protected |
Definition at line 69 of file class.ilExAssignmentEditorGUI.php.
Referenced by getTypeDropdown().