ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilStudyProgrammeAcknowledgeCompletedCoursesTableGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2015 Richard Klees, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/Table/classes/class.ilTable2GUI.php");
6
15{
16
20 function __construct($a_parent_obj, $a_user_id, $a_completed_courses) {
21 $this->folder = $a_folder;
22
23 parent::__construct($a_parent_obj, "");
24 $this->user_id = $a_user_id;
25
26 $this->addColumn("", "", "1", 1);
27 $this->addColumn($this->lng->txt("title"));
28
29 $this->setRowTemplate("tpl.acknowledge_completed_courses_row.html", "Modules/StudyProgramme");
30
31 $this->setData($a_completed_courses);
32 }
33
37 protected function fillRow($a_set) {
38 $this->tpl->setVariable("USR_ID", $this->user_id);
39 $this->tpl->setVariable("PRG_REF_ID", $a_set["prg_ref_id"]);
40 $this->tpl->setVariable("CRS_ID", $a_set["crs_id"]);
41 $this->tpl->setVariable("CRSR_ID", $a_set["crsr_id"]);
42 $this->tpl->setVariable("CRS_TITLE", $a_set["title"]);
43 }
44}
TableGUI class for acknowledgement of completed courses for new members of a study programme.
Class ilTable2GUI.
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.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.