4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
5 include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
21 public function __construct($a_parent_obj, $a_parent_cmd, $a_exc_id)
25 $this->ctrl = $DIC->ctrl();
26 $this->lng = $DIC->language();
28 $lng = $DIC->language();
30 $this->exc_id = $a_exc_id;
31 $this->
setId(
"excass" . $this->exc_id);
33 parent::__construct($a_parent_obj, $a_parent_cmd);
43 $this->
addColumn($this->lng->txt(
"title"),
"title");
44 $this->
addColumn($this->lng->txt(
"exc_assignment_type"),
"type");
45 $this->
addColumn($this->lng->txt(
"exc_presentation_order"),
"order_val");
46 $this->
addColumn($this->lng->txt(
"exc_start_time"),
"start_time");
47 $this->
addColumn($this->lng->txt(
"exc_deadline"),
"deadline");
48 $this->
addColumn($this->lng->txt(
"exc_mandatory"),
"mandatory");
49 $this->
addColumn($this->lng->txt(
"exc_peer_review"),
"peer");
50 $this->
addColumn($this->lng->txt(
"exc_instruction"),
"",
"30%");
51 $this->
addColumn($this->lng->txt(
"actions"));
61 $this->
setRowTemplate(
"tpl.exc_assignments_row.html",
"Modules/Exercise");
80 include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
81 include_once(
"./Modules/Exercise/classes/class.ilExPeerReview.php");
86 $data[$idx][
"peer_invalid"] =
true;
88 $peer_reviews = $peer_review->validatePeerReviewGroups();
89 $data[$idx][
"peer_invalid"] = $peer_reviews[
"invalid"];
92 $data[$idx][
"type"] = $types_map[
$row[
"type"]];
101 if (in_array($a_field,
array(
"order_val",
"deadline",
"start_time"))) {
115 $this->tpl->setVariable(
"ID",
$d[
"id"]);
117 include_once(
"./Modules/Exercise/classes/class.ilExAssignment.php");
120 if (
$d[
"deadline"] > 0) {
122 if (
$d[
"deadline2"] > 0) {
125 $this->tpl->setVariable(
"TXT_DEADLINE", $dl);
127 if (
$d[
"start_time"] > 0) {
128 $this->tpl->setVariable(
133 $this->tpl->setVariable(
138 if (
$d[
"mandatory"]) {
139 $this->tpl->setVariable(
"TXT_MANDATORY",
$lng->txt(
"yes"));
141 $this->tpl->setVariable(
"TXT_MANDATORY",
$lng->txt(
"no"));
144 $ilCtrl->setParameter($this->parent_obj,
"ass_id",
$d[
"id"]);
147 $this->tpl->setVariable(
"TXT_PEER",
$lng->txt(
"yes") .
" (" .
$d[
"peer_min"] .
")");
149 if (
$d[
"peer_invalid"]) {
150 $this->tpl->setVariable(
"TXT_PEER_INVALID",
$lng->txt(
"exc_peer_reviews_invalid_warning"));
153 if ($ass->afterDeadlineStrict()) {
154 $this->tpl->setVariable(
"TXT_PEER_OVERVIEW",
$lng->txt(
"exc_peer_review_overview"));
155 $this->tpl->setVariable(
157 $ilCtrl->getLinkTargetByClass(
"ilexpeerreviewgui",
"showPeerReviewOverview")
161 $this->tpl->setVariable(
"TXT_PEER",
$lng->txt(
"no"));
164 $this->tpl->setVariable(
"TXT_TITLE",
$d[
"title"]);
165 $this->tpl->setVariable(
"TXT_TYPE",
$d[
"type"]);
166 $this->tpl->setVariable(
"ORDER_VAL",
$d[
"order_val"]);
168 $this->tpl->setVariable(
"TXT_EDIT",
$lng->txt(
"edit"));
169 $this->tpl->setVariable(
171 $ilCtrl->getLinkTarget($this->parent_obj,
"editAssignment")
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static getAssignmentDataOfExercise($a_exc_id)
Get assignments data of an exercise in an array.
static shortenText( $a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setTopCommands($a_val)
Set top commands (display command buttons on top of table, too)
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
fillRow($d)
Fill table row.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
__construct($a_parent_obj, $a_parent_cmd, $a_exc_id)
Constructor.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
numericOrdering($a_field)
setEnableHeader($a_enableheader)
Set Enable Header.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setEnableTitle($a_enabletitle)
Set Enable Title.
for($i=6; $i< 13; $i++) for($i=1; $i< 13; $i++) $d
setLimit($a_limit=0, $a_default_limit=0)