5 include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
32 $this->exercise_id = $a_exercise_id;
33 $this->assignment = $a_ass;
34 $this->enable_peer_review_completion = (bool)$a_enable_peer_review_completion_settings;
41 $class = $ilCtrl->getNextClass($this);
42 $cmd = $ilCtrl->getCmd(
"listAssignments");
47 case "ilfilesystemgui":
49 $ilTabs->activateTab(
"ass_files");
51 include_once(
"./Modules/Exercise/classes/class.ilFSStorageExercise.php");
55 include_once(
"./Services/FileSystem/classes/class.ilFileSystemGUI.php");
57 $fs_gui->
setTitle($lng->txt(
"exc_instruction_files"));
58 $fs_gui->setTableId(
"excassfil".$this->assignment->getId());
59 $fs_gui->setAllowDirectories(
false);
60 $ilCtrl->forwardCommand($fs_gui);
63 case "ilexpeerreviewgui":
64 $ilTabs->clearTargets();
65 $ilTabs->setBackTarget($lng->txt(
"back"),
66 $ilCtrl->getLinkTarget($this,
"listAssignments"));
68 include_once(
"./Modules/Exercise/classes/class.ilExPeerReviewGUI.php");
70 $ilCtrl->forwardCommand($peer_gui);
74 $this->{
$cmd.
"Object"}();
86 $ilToolbar->setFormAction($ilCtrl->getFormAction($this,
"addAssignment"));
88 include_once
"Services/Form/classes/class.ilSelectInputGUI.php";
91 include_once
"Services/UIComponent/Button/classes/class.ilSubmitButton.php";
93 $button->setCaption(
"exc_add_assignment");
94 $button->setCommand(
"addAssignment");
95 $ilToolbar->addStickyItem($button);
98 include_once(
"./Modules/Exercise/classes/class.ilAssignmentsTableGUI.php");
100 $tpl->setContent(
$t->getHTML());
111 $this->assignment = null;
115 $ilCtrl->redirect($this,
"listAssignments");
119 $tpl->setContent($form->getHTML());
136 if(!$ilSetting->get(
'disable_wsp_blogs'))
140 if($ilSetting->get(
'user_portfolios'))
146 $ty->setRequired(
true);
160 $lng->loadLanguageModule(
"form");
161 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
163 $form->setTableWidth(
"600px");
164 if ($a_mode ==
"edit")
166 $form->setTitle($lng->txt(
"exc_edit_assignment"));
170 $form->setTitle($lng->txt(
"exc_new_assignment"));
172 $form->setFormAction($ilCtrl->getFormAction($this));
177 $ty->setDisabled(
true);
183 $ti->setRequired(
true);
189 $form->addItem($start_date);
194 $form->addItem($deadline);
198 $deadline2->
setInfo($lng->txt(
"exc_deadline_extended_info"));
199 $deadline2->setShowTime(
true);
200 $deadline->addSubItem($deadline2);
204 $cb->
setInfo($lng->txt(
"exc_mandatory_info"));
205 $cb->setChecked(
true);
211 $desc_input->setUseRte(
true);
212 $desc_input->setRteTagSet(
"mini");
213 $form->addItem($desc_input);
216 if ($a_mode ==
"create")
227 $max_file_tgl =
new ilCheckboxInputGUI($lng->txt(
"exc_max_file_tgl"),
"max_file_tgl");
228 $form->addItem($max_file_tgl);
231 $max_file->
setInfo($lng->txt(
"exc_max_file_info"));
232 $max_file->setRequired(
true);
233 $max_file->setSize(3);
234 $max_file->setMinValue(1);
235 $max_file_tgl->addSubItem($max_file);
240 $cbtut =
new ilCheckboxInputGUI($lng->txt(
"exc_team_management_tutor"),
"team_tutor");
241 $cbtut->
setInfo($lng->txt(
"exc_team_management_tutor_info"));
242 $cbtut->setChecked(
false);
243 $form->addItem($cbtut);
249 $peer->
setInfo($lng->txt(
"exc_peer_review_ass_setting_info"));
250 $form->addItem($peer);
262 $fb->addSubItem($fb_file);
268 $fb->addSubItem($fb_date);
270 $fb_cron =
new ilCheckboxInputGUI($lng->txt(
"exc_global_feedback_file_cron"),
"fb_cron");
271 $fb_cron->
setInfo($lng->txt(
"exc_global_feedback_file_cron_info"));
272 $fb->addSubItem($fb_cron);
275 if ($a_mode ==
"create")
277 $form->addCommandButton(
"saveAssignment", $lng->txt(
"save"));
278 $form->addCommandButton(
"listAssignments", $lng->txt(
"cancel"));
282 $form->addCommandButton(
"updateAssignment", $lng->txt(
"save"));
283 $form->addCommandButton(
"listAssignments", $lng->txt(
"cancel"));
299 $protected_peer_review_groups =
false;
301 if($this->assignment)
303 if($this->assignment->getPeerReview())
305 include_once
"Modules/Exercise/classes/class.ilExPeerReview.php";
307 if($peer_review->hasPeerReviewGroups())
309 $protected_peer_review_groups =
true;
313 if($this->assignment->getFeedbackFile())
321 if($protected_peer_review_groups)
337 $time_deadline = $time_deadline
341 $time_deadline_ext = $time_deadline_ext
346 if($protected_peer_review_groups)
348 $time_deadline = $this->assignment->getDeadline();
349 $time_deadline_ext = $this->assignment->getExtendedDeadline();
356 if(!$protected_peer_review_groups &&
360 ->setAlert($lng->txt(
"exc_needs_deadline"));
368 ->setAlert($lng->txt(
"exc_needs_deadline"));
377 $time_deadline_max = max($time_deadline, $time_deadline_ext);
378 $peer_dl = $this->assignment
379 ? $this->assignment->getPeerReviewDeadline()
381 if($peer_dl && $peer_dl < $time_deadline_max)
386 ->setAlert($lng->txt(
"exc_peer_deadline_mismatch"));
391 if($time_deadline_ext && $time_deadline_ext < $time_deadline)
394 ->setAlert($lng->txt(
"exc_deadline_ext_mismatch"));
398 $time_deadline_min = $time_deadline_ext
399 ? min($time_deadline, $time_deadline_ext)
401 $time_deadline_max = max($time_deadline, $time_deadline_ext);
407 ->setAlert($lng->txt(
"exc_start_date_should_be_before_end_date"));
417 ,
"title" => trim($a_form->
getInput(
"title"))
418 ,
"instruction" => trim($a_form->
getInput(
"instruction"))
419 ,
"mandatory" => $a_form->
getInput(
"mandatory")
422 ,
"deadline" => $time_deadline
423 ,
"deadline_ext" => $time_deadline_ext
424 ,
"max_file" => $a_form->
getInput(
"max_file_tgl")
427 ,
"team_tutor" => $a_form->
getInput(
"team_tutor")
432 $protected_peer_review_groups)
438 if(is_array($_FILES[
"files"]))
442 $res[
"files"] = $_FILES[
"files"];
451 if($_FILES[
"fb_file"][
"tmp_name"])
453 $res[
"fb_file"] = $_FILES[
"fb_file"];
474 $is_create = !(bool)$a_ass->
getId();
476 $a_ass->
setTitle($a_input[
"title"]);
513 if(is_array($a_input[
"files"]))
533 if(is_array($a_input[
"fb_file"]))
550 $this->assignment = null;
557 $ass->setExerciseId($this->exercise_id);
558 $ass->setType($input[
"type"]);
566 include_once
"Modules/Exercise/classes/class.ilExAssignmentTeam.php";
569 $ilCtrl->setParameter($this,
"ass_id", $ass->getId());
570 $ilCtrl->redirect($this,
"adoptTeamAssignmentsForm");
575 $ilCtrl->setParameter($this,
"ass_id", $ass->getId());
576 $ilCtrl->redirect($this,
"editAssignment");
580 $form->setValuesByPost();
581 $tpl->setContent($form->getHtml());
593 $ilTabs->activateTab(
"ass_settings");
597 $tpl->setContent($form->getHTML());
608 $values[
"type"] = $this->assignment->getType();
609 $values[
"title"] = $this->assignment->getTitle();
610 $values[
"mandatory"] = $this->assignment->getMandatory();
611 $values[
"instruction"] = $this->assignment->getInstruction();
613 if ($this->assignment->getStartTime())
621 if ($this->assignment->getMaxFile())
623 $values[
"max_file_tgl"] =
true;
624 $values[
"max_file"] = $this->assignment->getMaxFile();
630 $values[
"team_tutor"] = $this->assignment->getTeamTutor();
636 if($this->assignment->getFeedbackFile())
639 $a_form->
getItemByPostVar(
"fb_file")->setValue(basename($this->assignment->getGlobalFeedbackFilePath()));
643 '<a href="'.$ilCtrl->getLinkTarget($this,
"downloadGlobalFeedbackFile").
'">'.
644 $lng->txt(
"download").
'</a>' 647 $a_form->
getItemByPostVar(
"fb_cron")->setChecked($this->assignment->hasFeedbackCron());
648 $a_form->
getItemByPostVar(
"fb_date")->setValue($this->assignment->getFeedbackDate());
656 if($this->assignment->getDeadline() > 0)
662 if($this->assignment->getExtendedDeadline() > 0)
670 if($this->assignment->getPeerReview())
672 $a_form->
getItemByPostVar(
"peer")->setChecked($this->assignment->getPeerReview());
684 $this->assignment->getPeerReview())
687 include_once
"Modules/Exercise/classes/class.ilExPeerReview.php";
689 if($peer_review->hasPeerReviewGroups())
699 if($a_force_set_values ||
700 ($peer_review && $peer_review->hasPeerReviewGroups()))
718 $old_deadline = $this->assignment->getDeadline();
719 $old_ext_deadline = $this->assignment->getExtendedDeadline();
723 $new_deadline = $this->assignment->getDeadline();
724 $new_ext_deadline = $this->assignment->getExtendedDeadline();
727 if($old_deadline != $new_deadline ||
728 $old_ext_deadline != $new_ext_deadline)
730 $this->assignment->recalculateLateSubmissions();
734 $ilCtrl->redirect($this,
"editAssignment");
739 $ilTabs->activateTab(
"ass_settings");
741 $form->setValuesByPost();
743 $tpl->setContent($form->getHtml());
754 if (!is_array(
$_POST[
"id"]) || count(
$_POST[
"id"]) == 0)
757 $ilCtrl->redirect($this,
"listAssignments");
761 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
763 $cgui->setFormAction($ilCtrl->getFormAction($this));
764 $cgui->setHeaderText($lng->txt(
"exc_conf_del_assignments"));
765 $cgui->setCancel($lng->txt(
"cancel"),
"listAssignments");
766 $cgui->setConfirm($lng->txt(
"delete"),
"deleteAssignments");
768 foreach (
$_POST[
"id"] as $i)
773 $tpl->setContent($cgui->getHTML());
785 if (is_array(
$_POST[
"id"]))
787 foreach(
$_POST[
"id"] as $id)
799 $ilCtrl->setParameter($this,
"ass_id",
"");
800 $ilCtrl->redirect($this,
"listAssignments");
813 $ilCtrl->redirect($this,
"listAssignments");
826 $ilCtrl->redirect($this,
"listAssignments");
836 $tpl->setTitle($this->assignment->getTitle());
837 $tpl->setDescription(
"");
839 $ilTabs->clearTargets();
840 $ilHelp->setScreenIdComponent(
"exc");
842 $ilTabs->setBackTarget($lng->txt(
"back"),
843 $ilCtrl->getLinkTarget($this,
"listAssignments"));
845 $ilTabs->addTab(
"ass_settings",
846 $lng->txt(
"settings"),
847 $ilCtrl->getLinkTarget($this,
"editAssignment"));
850 $this->assignment->getPeerReview())
852 $ilTabs->addTab(
"peer_settings",
853 $lng->txt(
"exc_peer_review"),
854 $ilCtrl->getLinkTarget($this,
"editPeerReview"));
857 $ilTabs->addTab(
"ass_files",
858 $lng->txt(
"exc_instruction_files"),
859 $ilCtrl->getLinkTargetByClass(
array(
"ilexassignmenteditorgui",
"ilfilesystemgui"),
"listFiles"));
866 if(!$this->assignment ||
867 !$this->assignment->getFeedbackFile())
869 $ilCtrl->redirect($this,
"returnToParent");
872 ilUtil::deliverFile($this->assignment->getGlobalFeedbackFilePath(), $this->assignment->getFeedbackFile());
884 include_once(
"./Services/Form/classes/class.ilPropertyFormGUI.php");
886 $form->setTitle($lng->txt(
"exc_peer_review"));
887 $form->setFormAction($ilCtrl->getFormAction($this));
889 $peer_min =
new ilNumberInputGUI($lng->txt(
"exc_peer_review_min_number"),
"peer_min");
890 $peer_min->
setInfo($lng->txt(
"exc_peer_review_min_number_info"));
891 $peer_min->setRequired(
true);
892 $peer_min->setSize(3);
893 $peer_min->setValue(2);
894 $form->addItem($peer_min);
896 $peer_unlock =
new ilRadioGroupInputGUI($lng->txt(
"exc_peer_review_simple_unlock"),
"peer_unlock");
898 $peer_unlock->addOption(
new ilRadioOption($lng->txt(
"exc_peer_review_simple_unlock_inactive"), 0));
899 $peer_unlock->setRequired(
true);
900 $peer_unlock->setValue(0);
901 $form->addItem($peer_unlock);
903 if($this->enable_peer_review_completion)
907 $option->
setInfo($lng->txt(
"exc_peer_review_completion_none_info"));
908 $peer_cmpl->addOption($option);
910 $option->
setInfo($lng->txt(
"exc_peer_review_completion_one_info"));
911 $peer_cmpl->addOption($option);
913 $option->
setInfo($lng->txt(
"exc_peer_review_completion_all_info"));
914 $peer_cmpl->addOption($option);
915 $peer_cmpl->setRequired(
true);
917 $form->addItem($peer_cmpl);
921 $peer_dl->
setInfo($lng->txt(
"exc_peer_review_deadline_info"));
922 $peer_dl->setShowTime(
true);
923 $form->addItem($peer_dl);
925 $peer_prsl =
new ilCheckboxInputGUI($lng->txt(
"exc_peer_review_personal"),
"peer_prsl");
926 $peer_prsl->
setInfo($lng->txt(
"exc_peer_review_personal_info"));
927 $form->addItem($peer_prsl);
933 $form->addItem($cats);
937 $def =
new ilRadioOption($lng->txt(
"exc_criteria_catalogue_default"), -1);
938 $cats->addOption($def);
943 $peer_char =
new ilNumberInputGUI($lng->txt(
"exc_peer_review_min_chars"),
"peer_char");
944 $peer_char->
setInfo($lng->txt(
"exc_peer_review_min_chars_info"));
945 $peer_char->setSize(3);
946 $peer_text->addSubItem($peer_char);
948 $peer_rating =
new ilCheckboxInputGUI($lng->txt(
"exc_peer_review_rating"),
"peer_rating");
952 $peer_file->
setInfo($lng->txt(
"exc_peer_review_file_info"));
953 $def->addSubItem($peer_file);
957 include_once
"Modules/Exercise/classes/class.ilExcCriteriaCatalogue.php";
959 if(
sizeof($cat_objs))
961 include_once
"Modules/Exercise/classes/class.ilExcCriteria.php";
962 foreach($cat_objs as $cat_obj)
970 foreach($crits as $crit)
972 $titles[] = $crit->getTitle();
974 $opt =
new ilRadioOption($cat_obj->getTitle(), $cat_obj->getId());
975 $opt->
setInfo(implode(
", ", $titles));
976 $cats->addOption($opt);
983 $url = $ilCtrl->getLinkTargetByClass(
"ilexccriteriacataloguegui",
"");
984 $def->setInfo(
'<a href="'.
$url.
'">[+] '.
985 $lng->txt(
"exc_add_criteria_catalogue").
990 $form->addCommandButton(
"updatePeerReview", $lng->txt(
"save"));
991 $form->addCommandButton(
"editAssignment", $lng->txt(
"cancel"));
1001 $ilTabs->activateTab(
"peer_settings");
1003 if($a_form === null)
1008 $tpl->setContent($a_form->getHTML());
1015 if($this->assignment->getPeerReviewDeadline() > 0)
1020 $a_form->setValuesByArray($values);
1027 $a_form->
getItemByPostVar(
"peer_min")->setValue($this->assignment->getPeerReviewMin());
1028 $a_form->
getItemByPostVar(
"peer_prsl")->setChecked($this->assignment->hasPeerReviewPersonalized());
1029 $a_form->
getItemByPostVar(
"peer_unlock")->setValue((
int)$this->assignment->getPeerReviewSimpleUnlock());
1031 if($this->enable_peer_review_completion)
1033 $a_form->
getItemByPostVar(
"peer_valid")->setValue($this->assignment->getPeerReviewValid());
1036 $cat = $this->assignment->getPeerReviewCriteriaCatalogue();
1042 $a_form->
getItemByPostVar(
"peer_text")->setChecked($this->assignment->hasPeerReviewText());
1043 $a_form->
getItemByPostVar(
"peer_rating")->setChecked($this->assignment->hasPeerReviewRating());
1044 $a_form->
getItemByPostVar(
"peer_file")->setChecked($this->assignment->hasPeerReviewFileUpload());
1045 if ($this->assignment->getPeerReviewChars() > 0)
1047 $a_form->
getItemByPostVar(
"peer_char")->setValue($this->assignment->getPeerReviewChars());
1056 include_once
"Modules/Exercise/classes/class.ilExPeerReview.php";
1058 if($peer_review->hasPeerReviewGroups())
1067 if($this->enable_peer_review_completion)
1080 $min->setValue($this->assignment->getPeerReviewMin());
1084 if($a_force_set_values ||
1085 $peer_review->hasPeerReviewGroups())
1095 $protected_peer_review_groups =
false;
1096 include_once
"Modules/Exercise/classes/class.ilExPeerReview.php";
1098 if($peer_review->hasPeerReviewGroups())
1100 $protected_peer_review_groups =
true;
1107 $time_deadline = $this->assignment->getDeadline();
1108 $time_deadline_ext = $this->assignment->getExtendedDeadline();
1109 $time_deadline_max = max($time_deadline, $time_deadline_ext);
1117 if($time_peer && $time_deadline_max && $time_peer < $time_deadline_max)
1120 ->setAlert($lng->txt(
"exc_peer_deadline_mismatch"));
1124 if(!$protected_peer_review_groups)
1126 if($a_form->
getInput(
"crit_cat") < 0 &&
1128 !$a_form->
getInput(
"peer_rating") &&
1132 ->setAlert($lng->txt(
"select_one"));
1140 $res[
"peer_dl"] = $time_peer;
1142 if($protected_peer_review_groups)
1144 $res[
"peer_min"] = $this->assignment->getPeerReviewMin();
1145 $res[
"peer_unlock"] = $this->assignment->getPeerReviewSimpleUnlock();
1146 $res[
"peer_prsl"] = $this->assignment->hasPeerReviewPersonalized();
1147 $res[
"peer_valid"] = $this->assignment->getPeerReviewValid();
1149 $res[
"peer_text"] = $this->assignment->hasPeerReviewText();
1150 $res[
"peer_rating"] = $this->assignment->hasPeerReviewRating();
1151 $res[
"peer_file"] = $this->assignment->hasPeerReviewFileUpload();
1152 $res[
"peer_char"] = $this->assignment->getPeerReviewChars();
1153 $res[
"crit_cat"] = $this->assignment->getPeerReviewCriteriaCatalogue();
1155 $res[
"peer_valid"] = $this->enable_peer_review_completion
1156 ?
$res[
"peer_valid"]
1162 $res[
"peer_unlock"] = $a_form->
getInput(
"peer_unlock");
1167 $res[
"peer_rating"] = $a_form->
getInput(
"peer_rating");
1191 ? $a_input[
"peer_valid"]
1199 ? $a_input[
"crit_cat"]
1211 if(is_array($input))
1216 $ilCtrl->redirect($this,
"editPeerReview");
1221 $ilTabs->activateTab(
"peer_settings");
1223 $form->setValuesByPost();
1225 $tpl->setContent($form->getHtml());
1238 if(!$this->assignment)
1240 $ilCtrl->redirect($this,
"listAssignments");
1243 $ilTabs->clearTargets();
1244 $ilTabs->setBackTarget($lng->txt(
"back"),
1245 $ilCtrl->getLinkTarget($this,
"listAssignments"));
1247 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1249 $form->setTitle($lng->txt(
"exc_team_assignment_adopt"));
1250 $form->setFormAction($ilCtrl->getFormAction($this,
"adoptTeamAssignments"));
1252 include_once
"Modules/Exercise/classes/class.ilExAssignmentTeam.php";
1256 if(array_key_exists($this->assignment->getId(),
$options))
1258 $ilCtrl->redirect($this,
"listAssignments");
1264 $teams->addOption(
new ilRadioOption($lng->txt(
"exc_team_assignment_adopt_none"), -1));
1269 $option->setInfo($lng->txt(
"exc_team_assignment_adopt_teams").
": ".$item[
"teams"]);
1270 $teams->addOption($option);
1273 $form->addItem($teams);
1275 $form->addCommandButton(
"adoptTeamAssignments", $lng->txt(
"save"));
1276 $form->addCommandButton(
"listAssignments", $lng->txt(
"cancel"));
1278 $tpl->setContent($form->getHTML());
1285 $src_ass_id = (int)
$_POST[
"ass_adpt"];
1287 if($this->assignment &&
1290 include_once
"Modules/Exercise/classes/class.ilExAssignmentTeam.php";
1296 $ilCtrl->redirect($this,
"listAssignments");
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
Class ilExAssignmentEditorGUI.
This class represents an option in a radio group.
updateAssignmentObject()
Update assignment.
const FEEDBACK_DATE_SUBMISSION
setTitle($a_val)
Set title.
$enable_peer_review_completion
editPeerReviewObject(ilPropertyFormGUI $a_form=null)
setMaxFile($a_value)
Set max number of uploads.
setFeedbackFile($a_value)
Set (global) feedback file.
setPeerReviewMin($a_value)
Set peer review minimum.
confirmAssignmentsDeletionObject()
Confirm assignments deletion.
setTeamTutor($a_value)
Set team management by tutor.
setPeerReviewFileUpload($a_val)
Set peer review file upload.
getId()
Get assignment id.
saveAssignmentObject()
Save assignment.
processForm(ilPropertyFormGUI $a_form)
Custom form validation.
setPeerReview($a_value)
Toggle peer review.
setPeerReviewDeadline($a_val)
Set peer review deadline (timestamp)
setAssignmentHeader()
Set assignment header.
setPeerReviewValid($a_value)
Set peer review validation.
setTitle($a_val)
Set title.
saveAssOrderOfExercise($a_ex_id, $a_order)
Save ordering of all assignments of an exercise.
static adoptTeams($a_source_ass_id, $a_target_ass_id, $a_user_id=null, $a_exc_ref_id=null)
setInfo($a_info)
Set Info.
const PEER_REVIEW_VALID_ALL
setInstruction($a_val)
Set instruction.
adoptTeamAssignmentsFormObject()
listAssignmentsObject()
List assignments.
addAssignmentObject()
Create assignment.
const PEER_REVIEW_VALID_ONE
getPeerReviewValues($a_form)
static getAdoptableTeamAssignments($a_exercise_id, $a_exclude_ass_id=null, $a_user_id=null)
getTypeDropdown()
Get type selection dropdown.
getAssignmentValues(ilPropertyFormGUI $a_form)
Get current values for assignment from.
setStartTime($a_val)
Set start time (timestamp)
setDeadline($a_val)
Set deadline (timestamp)
if(!is_array($argv)) $options
static getInstancesByParentId($a_parent_id)
processPeerReviewForm(ilPropertyFormGUI $a_form)
handleDisabledPeerFields(ilPropertyFormGUI $a_form, $a_force_set_values=false)
setPeerReviewCriteriaCatalogue($a_value)
Set peer review criteria catalogue id.
setPeerReviewPersonalized($a_val)
Set peer review personalized.
setPeerReviewRating($a_val)
Set peer review rating.
uploadAssignmentFiles($a_files)
Upload assignment files (from creation form)
setPeerReviewSimpleUnlock($a_value)
Set peer review simple unlock.
__construct($a_exercise_id, $a_enable_peer_review_completion_settings, ilExAssignment $a_ass=null)
Constructor.
This class represents a text property in a property form.
setPeerReviewText($a_val)
Set peer review text.
adoptTeamAssignmentsObject()
handleGlobalFeedbackFileUpload(array $a_file)
setMaxLength($a_maxlength)
Set Max Length.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static deliverFile($a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
handleDisabledFields(ilPropertyFormGUI $a_form, $a_force_set_values=false)
Create styles array
The data for the language used.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
deleteGlobalFeedbackFile()
setFeedbackCron($a_value)
Toggle (global) feedback file cron.
const FEEDBACK_DATE_DEADLINE
orderAssignmentsByDeadlineObject()
Order by deadline.
editAssignmentObject()
Edit assignment.
static getInstancesByParentId($a_parent_id)
saveAssignmentOrderObject()
Save assignments order.
create()
Create directory.
setFeedbackDate($a_value)
Set (global) feedback file availability date.
importFormToAssignment(ilExAssignment $a_ass, array $a_input)
Import form values to assignment.
setRows($a_rows)
Set Rows.
setDate($a_date, $a_format)
set date
This class represents a text area property in a property form.
setPeerReviewChars($a_value)
Set peer review minimum characters.
const PEER_REVIEW_VALID_NONE
initAssignmentForm($a_type, $a_mode="create")
Init assignment form.
importPeerReviewFormToAssignment(ilExAssignment $a_ass, array $a_input)
File System Explorer GUI class.
setDisabledPeerReviewFieldValues(ilPropertyFormGUI $a_form)
setMandatory($a_val)
Set mandatory.
static orderAssByDeadline($a_ex_id)
Order assignments by deadline date.
downloadGlobalFeedbackFileObject()
setExtendedDeadline($a_val)
Set extended deadline (timestamp)
static lookupTitle($a_id)
Lookup title.
setDisabledFieldValues(ilPropertyFormGUI $a_form)
Confirmation screen class.
deleteAssignmentsObject()
Delete assignments.