ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilPCLayoutTemplateEditorGUI.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\COPage\Editor\Server\UIWrapper
;
22
use
ILIAS\COPage\Editor\Components\PageComponentEditor
;
23
24
class
ilPCLayoutTemplateEditorGUI
implements
PageComponentEditor
25
{
26
protected \ilLanguage
$lng
;
27
28
public
function
__construct
()
29
{
30
global
$DIC
;
31
$this->
lng
= $DIC->language();
32
}
33
34
public
function
getEditorElements
(
35
UIWrapper
$ui_wrapper,
36
string
$page_type,
37
ilPageObjectGUI
$page_gui,
38
int
$style_id
39
): array {
40
$form = $this->getCreationForm($page_gui, $ui_wrapper);
41
42
return
[
43
"creation_form"
=> $form,
44
"icon"
=> $ui_wrapper->
getRenderedIcon
(
"petmp"
)
45
];
46
}
47
48
public
function
getEditComponentForm
(
49
UIWrapper
$ui_wrapper,
50
string
$page_type,
51
\
ilPageObjectGUI
$page_gui,
52
int
$style_id,
53
string
$pcid
54
): string {
55
return
""
;
56
}
57
58
protected
function
getCreationForm(
59
ilPageObjectGUI
$page_gui,
60
UIWrapper
$ui_wrapper
61
):
string
{
62
$lng =
$this->lng
;
63
64
$lay_gui =
new
ilPCLayoutTemplateGUI
($page_gui->
getPageObject
(),
null
,
""
,
""
);
65
67
$form = $lay_gui->
initCreationForm
();
68
69
$html = $ui_wrapper->
getRenderedForm
(
70
$form,
71
[
72
[
"Page"
,
"component.save"
, $lng->txt(
"insert"
)],
73
[
"Page"
,
"component.cancel"
, $lng->txt(
"cancel"
)]
74
]
75
);
76
77
return
$html;
78
}
79
}
ilPCLayoutTemplateGUI\initCreationForm
initCreationForm()
Init creation from.
Definition:
class.ilPCLayoutTemplateGUI.php:73
ILIAS\COPage\Editor\Components\PageComponentEditor
Definition:
interface.PageComponentEditor.php:26
ilPageObjectGUI\getPageObject
getPageObject()
Definition:
class.ilPageObjectGUI.php:378
ILIAS\COPage\Editor\Server\UIWrapper
Definition:
class.UIWrapper.php:28
ILIAS\COPage\Editor\Server\UIWrapper\getRenderedIcon
getRenderedIcon(string $type)
Definition:
class.UIWrapper.php:417
UIWrapper
PageComponentEditor
ilPageObjectGUI
Class ilPageObjectGUI.
Definition:
class.ilPageObjectGUI.php:33
ilPCLayoutTemplateEditorGUI\getEditorElements
getEditorElements(UIWrapper $ui_wrapper, string $page_type, ilPageObjectGUI $page_gui, int $style_id)
Definition:
class.ilPCLayoutTemplateEditorGUI.php:34
ilPCLayoutTemplateGUI
ilPCLayoutTemplateGUI: ilPageEditorGUI
Definition:
class.ilPCLayoutTemplateGUI.php:24
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
ILIAS\COPage\Editor\Server\UIWrapper\getRenderedForm
getRenderedForm(\ilPropertyFormGUI $form, array $buttons)
Definition:
class.UIWrapper.php:210
$DIC
global $DIC
Definition:
shib_login.php:26
ilPCLayoutTemplateEditorGUI
Definition:
class.ilPCLayoutTemplateEditorGUI.php:24
ilPCLayoutTemplateEditorGUI\__construct
__construct()
Definition:
class.ilPCLayoutTemplateEditorGUI.php:28
ilPCLayoutTemplateEditorGUI\$lng
ilLanguage $lng
Definition:
class.ilPCLayoutTemplateEditorGUI.php:26
ilPCLayoutTemplateEditorGUI\getEditComponentForm
getEditComponentForm(UIWrapper $ui_wrapper, string $page_type, \ilPageObjectGUI $page_gui, int $style_id, string $pcid)
Get rendered editor elements.
Definition:
class.ilPCLayoutTemplateEditorGUI.php:48
components
ILIAS
COPage
PC
LayoutTemplate
class.ilPCLayoutTemplateEditorGUI.php
Generated on Sun Aug 31 2025 23:02:40 for ILIAS by
1.8.13 (using
Doxyfile
)