ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
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
11
class
ilLTIProviderReleasedObjectsTableGUI
extends
ilObjectTableGUI
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
{
43
$rows
=
ilObjLTIAdministration::readReleaseObjects
();
44
45
$counter
= 0;
46
$set =
array
();
47
foreach
(
$rows
as
$row
) {
48
$ref_id = $row[
'ref_id'
];
49
50
51
$type
=
ilObject::_lookupType
(
ilObject::_lookupObjId
($ref_id));
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
}
ilObjLTIAdministration\readReleaseObjects
static readReleaseObjects()
Read released objects.
Definition:
class.ilObjLTIAdministration.php:158
$type
$type
Definition:
proxy_ylocal.php:10
ilObject\_lookupTitle
static _lookupTitle($a_id)
lookup object title
Definition:
class.ilObject.php:933
ilLTIProviderReleasedObjectsTableGUI\fillRow
fillRow($set)
Fill row.
Definition:
class.ilLTIProviderReleasedObjectsTableGUI.php:34
$counter
$counter
Definition:
config-scanner.php:59
ilObject\_lookupObjId
static _lookupObjId($a_id)
Definition:
class.ilObject.php:1036
ilTable2GUI\setData
setData($a_data)
Definition:
class.ilTable2GUI.php:559
ilLTIProviderReleasedObjectsTableGUI\parse
parse()
Definition:
class.ilLTIProviderReleasedObjectsTableGUI.php:41
ilLTIProviderReleasedObjectsTableGUI
Description of class class.
Definition:
class.ilLTIProviderReleasedObjectsTableGUI.php:11
ilObjectTableGUI\enabledRowSelectionInput
enabledRowSelectionInput()
Definition:
class.ilObjectTableGUI.php:64
ilTable2GUI\setRowTemplate
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Definition:
class.ilTable2GUI.php:1108
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilObject\_lookupType
static _lookupType($a_id, $a_reference=false)
lookup object type
Definition:
class.ilObject.php:1204
$rows
$rows
Definition:
xhr_table.php:10
ilTable2GUI\addColumn
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.
Definition:
class.ilTable2GUI.php:1309
ilObjectTableGUI
Settings for LO courses.
Definition:
class.ilObjectTableGUI.php:10
$row
$row
Definition:
10autofilter-selection-1.php:74
ilLTIProviderReleasedObjectsTableGUI\init
init()
init table
Definition:
class.ilLTIProviderReleasedObjectsTableGUI.php:16
ilTableGUI\setOrderColumn
setOrderColumn($a_order_column=0, $a_default_column=0)
set order column public
Definition:
class.ilTableGUI.php:337
Services
LTI
classes
InternalProvider
class.ilLTIProviderReleasedObjectsTableGUI.php
Generated on Sat Jan 18 2025 19:01:33 for ILIAS by
1.8.13 (using
Doxyfile
)