ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilAssessmentFolderLogAdministrationTableGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 
5 include_once('./Services/Table/classes/class.ilTable2GUI.php');
6 
16 {
24  public function __construct($a_parent_obj, $a_parent_cmd, $a_write_access = false)
25  {
26  parent::__construct($a_parent_obj, $a_parent_cmd);
27 
28  global $lng, $ilCtrl;
29 
30  $this->lng = $lng;
31  $this->ctrl = $ilCtrl;
32  $this->counter = 1;
33 
34  $this->setFormName('showlog');
35  $this->setStyle('table', 'fullwidth');
36 
37  $this->addColumn('','','1%', true);
38  $this->addColumn($this->lng->txt("title"),'title', '');
39  $this->addColumn($this->lng->txt("ass_log_count_datasets"),'nr', '');
40 
41  $this->setRowTemplate("tpl.il_as_tst_assessment_log_administration_row.html", "Modules/Test");
42 
43  $this->setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
44 
45  if ($a_write_access)
46  {
47  $this->addMultiCommand('deleteLog', $this->lng->txt('ass_log_delete_entries'));
48  $this->setSelectAllCheckbox('chb_test');
49  $this->enable('select_all');
50  }
51 
52  $this->numericOrdering('nr');
53  $this->setDefaultOrderField("title");
54  $this->setDefaultOrderDirection("asc");
55 
56  $this->setPrefix('chb_test');
57 
58  $this->enable('header');
59  $this->enable('sort');
60  }
61 
69  public function fillRow($data)
70  {
71  $this->tpl->setVariable("TITLE", ilUtil::prepareFormOutput($data['title']));
72  $this->tpl->setVariable("NR", $data['nr']);
73  $this->tpl->setVariable("TEST_ID", $data['id']);
74  }
75 }
76 ?>