ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
table.php
Go to the documentation of this file.
1
<?
php
2
3
// This is does not actually work, but rather is a mock for a how a table could
4
// look like in the new ILIAS UI framework.
5
//
6
// I use a well known table (the famous user table from the administration) for
7
// demonstrational purpose.
8
//
9
// I also assume some kind of streamlining for tables:
10
// - row template will not be used anymore, instead everything is derived
11
// from the column definitions
12
// - title won't be considered being a table element anymore
13
//
14
// There still would be some questions we need to solve:
15
// - do we want to explicitly set width of columns? (assume no for the moment,
16
// as this is a problem of the rendering?)
17
//
18
// When discussing the design-problems with tables with our Art Directory, i
19
// came to the conclusion that there might be two types of tables we use in the
20
// system, which should be clearly distinguished.
21
//
22
// One is a "data-table" that more or less resembles excel and it's functionality.
23
// These tables are hard to design, as the amount of columns and other stuff is
24
// unknown when designing the table. That is why we should not even try to set
25
// width for the columns but instead let the user resize the tables freely after
26
// initializing the table with a size that fits the screen. Than it's he, who
27
// breaks the design when widening columns, not us. We then need a hierarchy for
28
// the importance of columns, to hide or show them for different screen sizes.
29
//
30
// The other type of table is a "presentation-table", that has a clearly defined
31
// amount of columns and potentially also different types of rows, that would
32
// make it able to create a detailed design of the table.
33
34
class
ilObjUserFolderGUI
{
35
36
// some stuff here...
37
38
protected
function
filter
() {
39
40
}
41
42
protected
function
table
() {
43
global
$DIC
;
44
$ui = $DIC->UIFactory();
45
$lng
= $DIC->lng();
46
$f = $ui->tablePart();
47
48
return
$ui->table
49
(
array
// columns
50
// Use keys for column ids as these are unique per definition.
51
// If the column would contain the id, we would need to check
52
// whether ids are unique.
53
(
"login"
=> $f->important_column
// importance of the columns defined
54
//with different constructors
55
(
$lng
->txt(
"login"
)
56
)
57
,
58
)
59
60
);
61
}
62
63
// some other stuff there...
64
65
}
66
ilObjUserFolderGUI\filter
filter()
Definition:
table.php:38
ilObjUserFolderGUI\table
table()
Definition:
table.php:42
ilObjectGUI\$lng
$lng
Definition:
class.ilObjectGUI.php:52
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilObjUserFolderGUI
Class ilObjUserFolderGUI.
Definition:
class.ilObjUserFolderGUI.php:19
php
$DIC
global $DIC
Definition:
imagemanager.php:32
src
UI
table.php
Generated on Fri Jan 17 2025 19:01:21 for ILIAS by
1.8.13 (using
Doxyfile
)