ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 | |
$ctrl | |
$tabs | |
$lng | |
$tpl | |
$toolbar | |
$settings | |
$help | |
$exercise_id | |
$assignment | |
$enable_peer_review_completion | |
Class ilExAssignmentEditorGUI.
ilExAssignmentEditorGUI: ilExAssignmentFileSystemGUI, ilExPeerReviewGUI, ilPropertyFormGUI
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 65 of file class.ilExAssignmentEditorGUI.php.
References $DIC, and settings().
ilExAssignmentEditorGUI::addAssignmentObject | ( | ) |
Create assignment.
Definition at line 161 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $form, $ilCtrl, $tpl, and initAssignmentForm().
ilExAssignmentEditorGUI::adoptTeamAssignmentsFormObject | ( | ) |
Definition at line 1321 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $form, $id, $ilCtrl, $lng, $options, $tabs, $tpl, ilExAssignmentTeam\getAdoptableTeamAssignments(), and ilRadioGroupInputGUI\setValue().
ilExAssignmentEditorGUI::adoptTeamAssignmentsObject | ( | ) |
Definition at line 1370 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $ilCtrl, $lng, ilExAssignmentTeam\adoptTeams(), and ilUtil\sendSuccess().
ilExAssignmentEditorGUI::confirmAssignmentsDeletionObject | ( | ) |
Confirm assignments deletion.
Definition at line 852 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $i, $ilCtrl, $lng, $tpl, ilExAssignment\lookupTitle(), and ilUtil\sendFailure().
ilExAssignmentEditorGUI::deleteAssignmentsObject | ( | ) |
Delete assignments.
Definition at line 880 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $id, $ilCtrl, $lng, ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilExAssignmentEditorGUI::downloadGlobalFeedbackFileObject | ( | ) |
Definition at line 973 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $ilCtrl, and ilUtil\deliverFile().
ilExAssignmentEditorGUI::editAssignmentObject | ( | ) |
Edit assignment.
Definition at line 685 of file class.ilExAssignmentEditorGUI.php.
References $form, $tabs, $tpl, getAssignmentValues(), initAssignmentForm(), and setAssignmentHeader().
ilExAssignmentEditorGUI::editPeerReviewObject | ( | ilPropertyFormGUI | $a_form = null | ) |
Definition at line 1100 of file class.ilExAssignmentEditorGUI.php.
References $tabs, $tpl, getPeerReviewValues(), initPeerReviewForm(), and setAssignmentHeader().
ilExAssignmentEditorGUI::executeCommand | ( | ) |
Definition at line 81 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $form, $ilCtrl, $lng, $tabs, ilFSWebStorageExercise\create(), initAssignmentForm(), setAssignmentHeader(), ilFileSystemGUI\setTitle(), and ilExAssignment\TYPE_PORTFOLIO.
ilExAssignmentEditorGUI::getAssignmentValues | ( | ilPropertyFormGUI | $a_form | ) |
Get current values for assignment from.
Definition at line 702 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $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 1116 of file class.ilExAssignmentEditorGUI.php.
References array, handleDisabledPeerFields(), and IL_CAL_UNIX.
Referenced by editPeerReviewObject().
|
protected |
Get type selection dropdown.
Definition at line 182 of file class.ilExAssignmentEditorGUI.php.
References $ilSetting, $lng, $settings, 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 782 of file class.ilExAssignmentEditorGUI.php.
References ilPropertyFormGUI\getItemByPostVar(), setDisabledFieldValues(), and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by getAssignmentValues(), and updateAssignmentObject().
|
protected |
Definition at line 1154 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 576 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\setMaxCharLimit(), ilExAssignment\setMaxFile(), ilExAssignment\setMinCharLimit(), ilExAssignment\setPeerReview(), ilExAssignment\setPeerReviewFileUpload(), ilExAssignment\setPeerReviewMin(), ilExAssignment\setPeerReviewPersonalized(), ilExAssignment\setPeerReviewRating(), ilExAssignment\setPeerReviewSimpleUnlock(), ilExAssignment\setPeerReviewText(), ilExAssignment\setPeerReviewValid(), ilExAssignment\setPortfolioTemplateId(), ilExAssignment\setStartTime(), ilExAssignment\setTeamTutor(), ilExAssignment\setTitle(), ilExAssignment\update(), and ilExAssignment\uploadAssignmentFiles().
Referenced by saveAssignmentObject(), and updateAssignmentObject().
|
protected |
Definition at line 1269 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 210 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $a_type, $ctrl, $files, $form, $ilCtrl, $lng, ilRadioOption\addSubItem(), ilNumberInputGUI\allowDecimals(), array, ilExAssignment\FEEDBACK_DATE_DEADLINE, ilExAssignment\FEEDBACK_DATE_SUBMISSION, getTypeDropdown(), ilFormPropertyGUI\setInfo(), ilTextInputGUI\setMaxLength(), ilFormPropertyGUI\setRequired(), ilTextAreaInputGUI\setRows(), ilDateTimeInputGUI\setShowTime(), ilExAssignment\TYPE_PORTFOLIO, ilExAssignment\TYPE_TEXT, ilExAssignment\TYPE_UPLOAD, and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by addAssignmentObject(), editAssignmentObject(), executeCommand(), saveAssignmentObject(), and updateAssignmentObject().
|
protected |
Definition at line 990 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $def, $form, $ilCtrl, $lng, $url, ilRadioGroupInputGUI\addOption(), 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 134 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $ilCtrl, $lng, $t, $toolbar, $tpl, ilSubmitButton\getInstance(), and getTypeDropdown().
ilExAssignmentEditorGUI::orderAssignmentsByDeadlineObject | ( | ) |
Order by deadline.
Definition at line 918 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $ilCtrl, $lng, ilExAssignment\orderAssByDeadline(), and ilUtil\sendSuccess().
|
protected |
Custom form validation.
ilPropertyFormGUI | $a_form |
Definition at line 407 of file class.ilExAssignmentEditorGUI.php.
References $lng, $res, $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 1189 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 645 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $form, $ilCtrl, $lng, $tpl, ilExAssignmentTeam\getAdoptableTeamAssignments(), importFormToAssignment(), initAssignmentForm(), processForm(), ilUtil\sendSuccess(), and ilExAssignment\TYPE_UPLOAD_TEAM.
ilExAssignmentEditorGUI::saveAssignmentOrderObject | ( | ) |
Save assignments order.
Definition at line 904 of file class.ilExAssignmentEditorGUI.php.
References $_POST, $ctrl, $ilCtrl, $lng, ilExAssignment\saveAssOrderOfExercise(), and ilUtil\sendSuccess().
ilExAssignmentEditorGUI::setAssignmentHeader | ( | ) |
Set assignment header.
Definition at line 932 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $help, $ilCtrl, $lng, $tabs, $tpl, array, and ilExAssignment\TYPE_UPLOAD_TEAM.
Referenced by editAssignmentObject(), editPeerReviewObject(), executeCommand(), updateAssignmentObject(), and updatePeerReviewObject().
|
protected |
Definition at line 762 of file class.ilExAssignmentEditorGUI.php.
References ilPropertyFormGUI\getItemByPostVar(), IL_CAL_UNIX, and ilDateTime\setDate().
Referenced by handleDisabledFields().
|
protected |
Definition at line 1129 of file class.ilExAssignmentEditorGUI.php.
References ilPropertyFormGUI\getItemByPostVar().
Referenced by handleDisabledPeerFields().
ilExAssignmentEditorGUI::updateAssignmentObject | ( | ) |
Update assignment.
Definition at line 813 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $form, $ilCtrl, $lng, $tabs, $tpl, handleDisabledFields(), importFormToAssignment(), initAssignmentForm(), processForm(), ilUtil\sendSuccess(), and setAssignmentHeader().
|
protected |
Definition at line 1292 of file class.ilExAssignmentEditorGUI.php.
References $ctrl, $form, $ilCtrl, $lng, $tabs, $tpl, handleDisabledPeerFields(), importPeerReviewFormToAssignment(), initPeerReviewForm(), processPeerReviewForm(), ilUtil\sendSuccess(), and setAssignmentHeader().
|
protected |
Definition at line 54 of file class.ilExAssignmentEditorGUI.php.
|
protected |
Definition at line 21 of file class.ilExAssignmentEditorGUI.php.
Referenced by addAssignmentObject(), adoptTeamAssignmentsFormObject(), adoptTeamAssignmentsObject(), confirmAssignmentsDeletionObject(), deleteAssignmentsObject(), downloadGlobalFeedbackFileObject(), executeCommand(), getAssignmentValues(), initAssignmentForm(), initPeerReviewForm(), listAssignmentsObject(), orderAssignmentsByDeadlineObject(), saveAssignmentObject(), saveAssignmentOrderObject(), setAssignmentHeader(), updateAssignmentObject(), and updatePeerReviewObject().
|
protected |
Definition at line 55 of file class.ilExAssignmentEditorGUI.php.
|
protected |
Definition at line 53 of file class.ilExAssignmentEditorGUI.php.
|
protected |
Definition at line 51 of file class.ilExAssignmentEditorGUI.php.
Referenced by setAssignmentHeader().
|
protected |
Definition at line 31 of file class.ilExAssignmentEditorGUI.php.
Referenced by adoptTeamAssignmentsFormObject(), adoptTeamAssignmentsObject(), confirmAssignmentsDeletionObject(), deleteAssignmentsObject(), executeCommand(), getAssignmentValues(), getTypeDropdown(), initAssignmentForm(), initPeerReviewForm(), listAssignmentsObject(), orderAssignmentsByDeadlineObject(), processForm(), processPeerReviewForm(), saveAssignmentObject(), saveAssignmentOrderObject(), setAssignmentHeader(), updateAssignmentObject(), and updatePeerReviewObject().
|
protected |
Definition at line 46 of file class.ilExAssignmentEditorGUI.php.
Referenced by getTypeDropdown().
|
protected |
Definition at line 26 of file class.ilExAssignmentEditorGUI.php.
Referenced by adoptTeamAssignmentsFormObject(), editAssignmentObject(), editPeerReviewObject(), executeCommand(), setAssignmentHeader(), updateAssignmentObject(), and updatePeerReviewObject().
|
protected |
Definition at line 41 of file class.ilExAssignmentEditorGUI.php.
Referenced by listAssignmentsObject().
|
protected |
Definition at line 36 of file class.ilExAssignmentEditorGUI.php.
Referenced by addAssignmentObject(), adoptTeamAssignmentsFormObject(), confirmAssignmentsDeletionObject(), editAssignmentObject(), editPeerReviewObject(), listAssignmentsObject(), saveAssignmentObject(), setAssignmentHeader(), updateAssignmentObject(), and updatePeerReviewObject().