ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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) | |
adoptTeamAssignmentsFormObject () | |
adoptTeamAssignmentsObject () | |
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... | |
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 | |
$exercise_id | |
$assignment | |
$enable_peer_review_completion | |
Class ilExAssignmentEditorGUI.
ilExAssignmentEditorGUI: ilFileSystemGUI, ilExPeerReviewGUI
Definition at line 16 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 30 of file class.ilExAssignmentEditorGUI.php.
ilExAssignmentEditorGUI::addAssignmentObject | ( | ) |
Create assignment.
Definition at line 106 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ilCtrl, $tpl, and initAssignmentForm().
ilExAssignmentEditorGUI::adoptTeamAssignmentsFormObject | ( | ) |
Definition at line 1234 of file class.ilExAssignmentEditorGUI.php.
References $ilCtrl, $lng, $options, $tpl, ilExAssignmentTeam\getAdoptableTeamAssignments(), and ilRadioGroupInputGUI\setValue().
ilExAssignmentEditorGUI::adoptTeamAssignmentsObject | ( | ) |
Definition at line 1281 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ilCtrl, $lng, ilExAssignmentTeam\adoptTeams(), and ilUtil\sendSuccess().
ilExAssignmentEditorGUI::confirmAssignmentsDeletionObject | ( | ) |
Confirm assignments deletion.
Definition at line 750 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, ilExAssignment\lookupTitle(), and ilUtil\sendFailure().
ilExAssignmentEditorGUI::deleteAssignmentsObject | ( | ) |
Delete assignments.
Definition at line 780 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ilCtrl, $lng, ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilExAssignmentEditorGUI::downloadGlobalFeedbackFileObject | ( | ) |
Definition at line 862 of file class.ilExAssignmentEditorGUI.php.
References $ilCtrl, and ilUtil\deliverFile().
ilExAssignmentEditorGUI::editAssignmentObject | ( | ) |
Edit assignment.
Definition at line 588 of file class.ilExAssignmentEditorGUI.php.
References $tpl, getAssignmentValues(), initAssignmentForm(), and setAssignmentHeader().
ilExAssignmentEditorGUI::editPeerReviewObject | ( | ilPropertyFormGUI | $a_form = null | ) |
Definition at line 996 of file class.ilExAssignmentEditorGUI.php.
References $tpl, getPeerReviewValues(), initPeerReviewForm(), and setAssignmentHeader().
ilExAssignmentEditorGUI::executeCommand | ( | ) |
Definition at line 37 of file class.ilExAssignmentEditorGUI.php.
References $cmd, $ilCtrl, $lng, ilFSStorageExercise\create(), setAssignmentHeader(), and ilFileSystemGUI\setTitle().
ilExAssignmentEditorGUI::getAssignmentValues | ( | ilPropertyFormGUI | $a_form | ) |
Get current values for assignment from.
Definition at line 603 of file class.ilExAssignmentEditorGUI.php.
References $ilCtrl, $lng, array, ilPropertyFormGUI\getItemByPostVar(), handleDisabledFields(), IL_CAL_UNIX, ilPropertyFormGUI\setValuesByArray(), ilExAssignment\TYPE_UPLOAD, and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by editAssignmentObject().
|
protected |
Definition at line 1011 of file class.ilExAssignmentEditorGUI.php.
References array, handleDisabledPeerFields(), and IL_CAL_UNIX.
Referenced by editPeerReviewObject().
|
protected |
Get type selection dropdown.
Definition at line 127 of file class.ilExAssignmentEditorGUI.php.
References $ilSetting, $lng, array, ilSelectInputGUI\setOptions(), ilExAssignment\TYPE_BLOG, ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_TEXT, ilExAssignment\TYPE_UPLOAD, and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by initAssignmentForm(), and listAssignmentsObject().
|
protected |
Definition at line 676 of file class.ilExAssignmentEditorGUI.php.
References ilPropertyFormGUI\getItemByPostVar(), setDisabledFieldValues(), and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by getAssignmentValues(), and updateAssignmentObject().
|
protected |
Definition at line 1053 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 472 of file class.ilExAssignmentEditorGUI.php.
References ilExAssignment\deleteGlobalFeedbackFile(), ilExAssignment\getId(), ilExAssignment\handleGlobalFeedbackFileUpload(), ilExAssignment\PEER_REVIEW_VALID_NONE, ilExAssignment\save(), ilExAssignment\setDeadline(), ilExAssignment\setExtendedDeadline(), ilExAssignment\setFeedbackCron(), ilExAssignment\setFeedbackDate(), 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\setStartTime(), ilExAssignment\setTeamTutor(), ilExAssignment\setTitle(), ilExAssignment\update(), and ilExAssignment\uploadAssignmentFiles().
Referenced by saveAssignmentObject(), and updateAssignmentObject().
|
protected |
Definition at line 1182 of file class.ilExAssignmentEditorGUI.php.
References 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 |
Init assignment form.
int | $a_type | |
int | $a_mode | "create"/"edit" |
Definition at line 156 of file class.ilExAssignmentEditorGUI.php.
References $a_type, $files, $ilCtrl, $lng, array, ilExAssignment\FEEDBACK_DATE_DEADLINE, ilExAssignment\FEEDBACK_DATE_SUBMISSION, getTypeDropdown(), ilFormPropertyGUI\setInfo(), ilTextInputGUI\setMaxLength(), ilFormPropertyGUI\setRequired(), ilTextAreaInputGUI\setRows(), ilDateTimeInputGUI\setShowTime(), ilExAssignment\TYPE_UPLOAD, and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by addAssignmentObject(), editAssignmentObject(), saveAssignmentObject(), and updateAssignmentObject().
|
protected |
Definition at line 880 of file class.ilExAssignmentEditorGUI.php.
References $ilCtrl, $lng, $url, ilRadioGroupInputGUI\addOption(), ilSubEnabledFormPropertyGUI\addSubItem(), array, ilExcCriteriaCatalogue\getInstancesByParentId(), ilExcCriteria\getInstancesByParentId(), ilExAssignment\PEER_REVIEW_VALID_ALL, ilExAssignment\PEER_REVIEW_VALID_NONE, ilExAssignment\PEER_REVIEW_VALID_ONE, ilRadioOption\setInfo(), and ilFormPropertyGUI\setInfo().
Referenced by editPeerReviewObject(), and updatePeerReviewObject().
ilExAssignmentEditorGUI::listAssignmentsObject | ( | ) |
List assignments.
Definition at line 82 of file class.ilExAssignmentEditorGUI.php.
References $ilCtrl, $lng, $t, $tpl, ilSubmitButton\getInstance(), and getTypeDropdown().
ilExAssignmentEditorGUI::orderAssignmentsByDeadlineObject | ( | ) |
Order by deadline.
Definition at line 819 of file class.ilExAssignmentEditorGUI.php.
References $ilCtrl, $lng, ilExAssignment\orderAssByDeadline(), and ilUtil\sendSuccess().
|
protected |
Custom form validation.
ilPropertyFormGUI | $a_form |
Definition at line 295 of file class.ilExAssignmentEditorGUI.php.
References $lng, $res, $time_start, $valid, array, ilPropertyFormGUI\checkInput(), ilExAssignment\FEEDBACK_DATE_DEADLINE, ilPropertyFormGUI\getInput(), ilPropertyFormGUI\getItemByPostVar(), IL_CAL_UNIX, and ilUtil\sendFailure().
Referenced by saveAssignmentObject(), and updateAssignmentObject().
|
protected |
Definition at line 1091 of file class.ilExAssignmentEditorGUI.php.
References $lng, $res, $valid, array, ilPropertyFormGUI\checkInput(), ilPropertyFormGUI\getInput(), ilPropertyFormGUI\getItemByPostVar(), IL_CAL_UNIX, and ilUtil\sendFailure().
Referenced by updatePeerReviewObject().
ilExAssignmentEditorGUI::saveAssignmentObject | ( | ) |
Save assignment.
Definition at line 545 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ilCtrl, $lng, $tpl, ilExAssignmentTeam\getAdoptableTeamAssignments(), importFormToAssignment(), initAssignmentForm(), processForm(), ilUtil\sendSuccess(), and ilExAssignment\TYPE_UPLOAD_TEAM.
ilExAssignmentEditorGUI::saveAssignmentOrderObject | ( | ) |
Save assignments order.
Definition at line 806 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ilCtrl, $lng, ilExAssignment\saveAssOrderOfExercise(), and ilUtil\sendSuccess().
ilExAssignmentEditorGUI::setAssignmentHeader | ( | ) |
Set assignment header.
Definition at line 832 of file class.ilExAssignmentEditorGUI.php.
References $ilCtrl, $lng, $tpl, array, and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by editAssignmentObject(), editPeerReviewObject(), executeCommand(), updateAssignmentObject(), and updatePeerReviewObject().
|
protected |
Definition at line 653 of file class.ilExAssignmentEditorGUI.php.
References ilPropertyFormGUI\getItemByPostVar(), IL_CAL_UNIX, and ilDateTime\setDate().
Referenced by handleDisabledFields().
|
protected |
Definition at line 1025 of file class.ilExAssignmentEditorGUI.php.
References ilPropertyFormGUI\getItemByPostVar().
Referenced by handleDisabledPeerFields().
ilExAssignmentEditorGUI::updateAssignmentObject | ( | ) |
Update assignment.
Definition at line 710 of file class.ilExAssignmentEditorGUI.php.
References $ilCtrl, $lng, $tpl, handleDisabledFields(), importFormToAssignment(), initAssignmentForm(), processForm(), ilUtil\sendSuccess(), and setAssignmentHeader().
|
protected |
Definition at line 1205 of file class.ilExAssignmentEditorGUI.php.
References $ilCtrl, $lng, $tpl, handleDisabledPeerFields(), importPeerReviewFormToAssignment(), initPeerReviewForm(), processPeerReviewForm(), ilUtil\sendSuccess(), and setAssignmentHeader().
|
protected |
Definition at line 19 of file class.ilExAssignmentEditorGUI.php.
|
protected |
Definition at line 20 of file class.ilExAssignmentEditorGUI.php.
|
protected |
Definition at line 18 of file class.ilExAssignmentEditorGUI.php.