ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
5 include_once("./Services/Table/classes/class.ilTable2GUI.php");
6 
15 {
16 
20  public function __construct($a_parent_obj, $a_user_id, $a_completed_courses)
21  {
22  $this->folder = $a_folder;
23 
24  parent::__construct($a_parent_obj, "");
25  $this->user_id = $a_user_id;
26 
27  $this->addColumn("", "", "1", 1);
28  $this->addColumn($this->lng->txt("title"));
29 
30  $this->setRowTemplate("tpl.acknowledge_completed_courses_row.html", "Modules/StudyProgramme");
31 
32  $this->setData($a_completed_courses);
33  }
34 
38  protected function fillRow($a_set)
39  {
40  $this->tpl->setVariable("USR_ID", $this->user_id);
41  $this->tpl->setVariable("PRG_REF_ID", $a_set["prg_ref_id"]);
42  $this->tpl->setVariable("CRS_ID", $a_set["crs_id"]);
43  $this->tpl->setVariable("CRSR_ID", $a_set["crsr_id"]);
44  $this->tpl->setVariable("CRS_TITLE", $a_set["title"]);
45  }
46 }
__construct($a_parent_obj, $a_user_id, $a_completed_courses)
Constructor.
Class ilTable2GUI.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
TableGUI class for acknowledgement of completed courses for new members of a study programme...
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.