ILIAS
release_4-4 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
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
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
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
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilCOPageDefReader.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4
11
class
ilCOPageDefReader
12
{
19
function
clearTables
()
20
{
21
global $ilDB;
22
23
$ilDB->manipulate(
"DELETE FROM copg_pc_def"
);
24
$ilDB->manipulate(
"DELETE FROM copg_pobj_def"
);
25
}
26
34
function
handlerBeginTag
($a_xml_parser,$a_name,$a_attribs, $a_comp)
35
{
36
global $ilDB;
37
38
switch
($a_name)
39
{
40
case
"pagecontent"
:
41
$ilDB->manipulate(
"INSERT INTO copg_pc_def "
.
42
"(pc_type, name, component, directory, int_links, style_classes, xsl, def_enabled) VALUES ("
.
43
$ilDB->quote($a_attribs[
"pc_type"
],
"text"
).
","
.
44
$ilDB->quote($a_attribs[
"name"
],
"text"
).
","
.
45
$ilDB->quote($a_comp,
"text"
).
","
.
46
$ilDB->quote($a_attribs[
"directory"
],
"text"
).
","
.
47
$ilDB->quote($a_attribs[
"int_links"
],
"integer"
).
","
.
48
$ilDB->quote($a_attribs[
"style_classes"
],
"integer"
).
","
.
49
$ilDB->quote($a_attribs[
"xsl"
],
"integer"
).
","
.
50
$ilDB->quote($a_attribs[
"def_enabled"
],
"integer"
).
51
")"
);
52
break
;
53
54
case
"pageobject"
:
55
$ilDB->manipulate(
"INSERT INTO copg_pobj_def "
.
56
"(parent_type, class_name, component, directory) VALUES ("
.
57
$ilDB->quote($a_attribs[
"parent_type"
],
"text"
).
","
.
58
$ilDB->quote($a_attribs[
"class_name"
],
"text"
).
","
.
59
$ilDB->quote($a_comp,
"text"
).
","
.
60
$ilDB->quote($a_attribs[
"directory"
],
"text"
).
61
")"
);
62
break
;
63
}
64
}
65
72
function
handlerEndTag
($a_xml_parser,$a_name)
73
{
74
}
75
}
76
77
?>
ilCOPageDefReader
COPage definition xml reader class.
Definition:
class.ilCOPageDefReader.php:11
ilCOPageDefReader\handlerBeginTag
handlerBeginTag($a_xml_parser, $a_name, $a_attribs, $a_comp)
Start tag handler.
Definition:
class.ilCOPageDefReader.php:34
ilCOPageDefReader\handlerEndTag
handlerEndTag($a_xml_parser, $a_name)
End tag handler.
Definition:
class.ilCOPageDefReader.php:72
ilCOPageDefReader\clearTables
clearTables()
Clear definition tables.
Definition:
class.ilCOPageDefReader.php:19
setup
classes
class.ilCOPageDefReader.php
Generated on Mon Dec 21 2020 19:01:26 for ILIAS by
1.8.13 (using
Doxyfile
)