ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilLTIProviderReleasedObjectsTableGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12{
16 public function init()
17 {
18 if ($this->enabledRowSelectionInput()) {
19 $this->addColumn('', 'id', '5px');
20 }
21
22 $this->addColumn($this->lng->txt('type'), 'type', '30px');
23 $this->addColumn($this->lng->txt('title'), 'title');
24 $this->addColumn($this->lng->txt('lti_consumer'), 'consumer', '30%');
25
26 $this->setOrderColumn('title');
27 $this->setRowTemplate('tpl.lti_object_table_row.html', 'Services/LTI');
28 }
29
34 public function fillRow($set)
35 {
36 parent::fillRow($set);
37
38 $this->tpl->setVariable('CONSUMER_TITLE', $set['consumer']);
39 }
40
41 public function parse()
42 {
44
45 $counter = 0;
46 $set = array();
47 foreach ($rows as $row) {
48 $ref_id = $row['ref_id'];
49
50
52 if ($type == 'rolf') {
53 continue;
54 }
55
56 $set[$counter]['ref_id'] = $ref_id;
57 $set[$counter]['obj_id'] = ilObject::_lookupObjId($ref_id);
58 $set[$counter]['type'] = ilObject::_lookupType(ilObject::_lookupObjId($ref_id));
59 $set[$counter]['title'] = ilObject::_lookupTitle(ilObject::_lookupObjId($ref_id));
60 $set[$counter]['consumer'] = $row['title'];
61 $counter++;
62 }
63 $this->setData($set);
64 }
65}
An exception for terminatinating execution or to throw for unit testing.
static readReleaseObjects()
Read released objects.
Settings for LO courses.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
static _lookupType($a_id, $a_reference=false)
lookup object type
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.
setOrderColumn($a_order_column=0, $a_default_column=0)
set order column @access public
$type
$rows
Definition: xhr_table.php:10