ILIAS
trunk Revision v12.0_alpha-439-g30457d6d0bc
◀ ilDoc Overview
LegacyTableContentWrapper.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Badge\Table
;
22
23
use
ILIAS\UI\Renderer
;
24
use
ILIAS\UI\Factory
;
25
use
ILIAS\UI\Component\Table\Data
;
26
43
final
class
TableContentWrapper
44
{
45
public
function
__construct
(
46
private
readonly
Renderer
$r,
47
private
readonly
Factory
$f
,
48
) {
49
}
50
51
public
function
wrap
(
Data
$c
): \
ILIAS
\
UI
\
Component
\Legacy\
Content
52
{
53
return
$this->f->legacy()->content(
54
'<div class="badge_table-wrapper">'
. $this->r->render(
$c
) .
'</div>'
55
);
56
}
57
}
ILIAS\Badge\Table\TableContentWrapper
This class provides a central helper method to wrap the content of a KS/UI > Table > Data into a spec...
Definition:
LegacyTableContentWrapper.php:44
ILIAS\Badge\Table\TableContentWrapper\wrap
wrap(Data $c)
Definition:
LegacyTableContentWrapper.php:51
ILIAS\Badge\Table\TableContentWrapper\__construct
__construct(private readonly Renderer $r, private readonly Factory $f,)
Definition:
LegacyTableContentWrapper.php:45
ILIAS\Data\Color\Factory
Builds a Color from either hex- or rgb values.
Definition:
Factory.php:31
ILIAS\UI
Definition:
UI.php:24
$c
$c
Definition:
deliver.php:25
ILIAS\UI\Component\Legacy\Content
Definition:
Content.php:33
ILIAS\UI\Component\Table\Data
This describes a Data Table.
Definition:
Data.php:33
ILIAS\UI\Factory
This is how the factory for UI elements looks.
Definition:
Factory.php:38
ILIAS\UI\Renderer
An entity that renders components to a string output.
Definition:
Renderer.php:31
ILIAS\Badge\Table
Definition:
LegacyTableContentWrapper.php:21
ILIAS\UI\Component
ILIAS
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
Definition:
AccessControl.php:21
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
components
ILIAS
Badge
src
Table
LegacyTableContentWrapper.php
Generated on Thu Dec 18 2025 23:02:04 for ILIAS by
1.9.4 (using
Doxyfile
)