ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
+
Files
File List
+
Globals
+
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
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
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
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
Init.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2020 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\COPage\Editor\UI
;
6
10
class
Init
11
{
15
protected
$ctrl
;
16
20
protected
$lng
;
21
25
public
function
__construct
()
26
{
27
global
$DIC
;
28
29
$this->ctrl = $DIC->ctrl();
30
$this->lng = $DIC->language();
31
}
32
33
public
function
initUI
(\
ilGlobalPageTemplate
$main_tpl,
string
$openPlaceHolderPcId =
""
)
34
{
35
$ctrl
=
$this->ctrl
;
36
$lng
=
$this->lng
;
37
38
$main_tpl->addOnloadCode(
"il.copg.editor.init('"
.
39
ILIAS_HTTP_PATH .
"/"
.
$ctrl
->getLinkTargetByClass([
"ilPageEditorGUI"
,
"ilPageEditorServerAdapterGUI"
],
"invokeServer"
) .
"','"
.
40
$this->ctrl->getFormActionByClass(
"ilPageEditorGUI"
)
41
.
"', '"
.$openPlaceHolderPcId.
"');"
);
42
43
$lang_vars = [
"cont_last_update"
,
"cont_error"
,
"cont_sel_el_cut_use_paste"
,
"cont_sel_el_copied_use_paste"
,
44
"cont_ed_new_col_before"
,
"cont_ed_new_col_after"
,
"cont_ed_col_left"
,
"cont_ed_col_right"
,
"cont_ed_delete_col"
,
45
"cont_ed_new_row_before"
,
"cont_ed_new_row_after"
,
"cont_ed_row_up"
,
"cont_ed_row_down"
,
"cont_ed_delete_row"
,
"cont_saving"
46
];
47
48
foreach
($lang_vars as $l) {
49
$lng
->toJS($l);
50
}
51
52
if
(DEVMODE == 1) {
53
$main_tpl->addJavascript(
"./node_modules/tinymce/tinymce.js"
);
54
}
else
{
55
$main_tpl->addJavascript(
"./node_modules/tinymce/tinymce.min.js"
);
56
}
57
58
include_once(
"./Services/YUI/classes/class.ilYuiUtil.php"
);
59
\ilYuiUtil::initConnection
();
60
$main_tpl->
addJavaScript
(
"./Services/UIComponent/Explorer/js/ilExplorer.js"
);
61
62
// ensure that form.js is loaded which is needed for file input (js that shows file names)
63
$dummy = new \ilPropertyFormGUI();
64
$dummy->getHTML();
65
}
66
}
ilGlobalPageTemplate\addJavaScript
addJavaScript($a_js_file, $a_add_version_parameter=true, $a_batch=2)
Definition:
class.ilGlobalPageTemplate.php:168
ILIAS\COPage\Editor\UI\Init\initUI
initUI(\ilGlobalPageTemplate $main_tpl, string $openPlaceHolderPcId="")
Definition:
Init.php:33
ILIAS\COPage\Editor\UI\Init\__construct
__construct()
Constructor.
Definition:
Init.php:25
ilYuiUtil\initConnection
static initConnection(ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Connection module.
Definition:
class.ilYuiUtil.php:20
ILIAS\COPage\Editor\UI\Init
Definition:
Init.php:10
ILIAS\COPage\Editor\UI
Definition:
Init.php:5
ILIAS\COPage\Editor\UI\Init\$lng
$lng
Definition:
Init.php:20
ilGlobalPageTemplate
Class ilGlobalPageTemplate.
Definition:
class.ilGlobalPageTemplate.php:31
ILIAS\COPage\Editor\UI\Init\$ctrl
$ctrl
Definition:
Init.php:15
$DIC
global $DIC
Definition:
goto.php:24
Services
COPage
Editor
UI
Init.php
Generated on Sun Apr 6 2025 21:01:30 for ILIAS by
1.8.13 (using
Doxyfile
)