ILIAS
trunk Revision v11.0_alpha-1753-gb21ca8c4367
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
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:142
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:22
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 Thu Apr 10 2025 23:02:56 for ILIAS by
1.8.13 (using
Doxyfile
)