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