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
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
{
16
protected
$db
;
17
18
public
function
__construct
(\
ilDBInterface
$db
)
19
{
20
$this->db =
$db
;
21
}
22
23
protected
function
getDB
() : \
ilDBInterface
24
{
25
return
$this->db
;
26
}
27
34
public
function
clearTables
()
35
{
36
$ilDB
= $this->
getDB
();
37
38
$ilDB
->manipulate(
"DELETE FROM copg_pc_def"
);
39
$ilDB
->manipulate(
"DELETE FROM copg_pobj_def"
);
40
}
41
49
public
function
handlerBeginTag
($a_xml_parser, $a_name, $a_attribs, $a_comp)
50
{
51
$ilDB
= $this->
getDB
();
52
53
switch
($a_name) {
54
case
"pagecontent"
:
55
$ilDB
->manipulate(
"INSERT INTO copg_pc_def "
.
56
"(pc_type, name, component, directory, int_links, style_classes, xsl, def_enabled, top_item, order_nr) VALUES ("
.
57
$ilDB
->quote($a_attribs[
"pc_type"
],
"text"
) .
","
.
58
$ilDB
->quote($a_attribs[
"name"
],
"text"
) .
","
.
59
$ilDB
->quote($a_comp,
"text"
) .
","
.
60
$ilDB
->quote($a_attribs[
"directory"
],
"text"
) .
","
.
61
$ilDB
->quote($a_attribs[
"int_links"
],
"integer"
) .
","
.
62
$ilDB
->quote($a_attribs[
"style_classes"
],
"integer"
) .
","
.
63
$ilDB
->quote($a_attribs[
"xsl"
],
"integer"
) .
","
.
64
$ilDB
->quote($a_attribs[
"def_enabled"
],
"integer"
) .
","
.
65
$ilDB
->quote($a_attribs[
"top_item"
],
"integer"
) .
","
.
66
$ilDB
->quote($a_attribs[
"order_nr"
],
"integer"
) .
67
")"
);
68
break
;
69
70
case
"pageobject"
:
71
$ilDB
->manipulate(
"INSERT INTO copg_pobj_def "
.
72
"(parent_type, class_name, component, directory) VALUES ("
.
73
$ilDB
->quote($a_attribs[
"parent_type"
],
"text"
) .
","
.
74
$ilDB
->quote($a_attribs[
"class_name"
],
"text"
) .
","
.
75
$ilDB
->quote($a_comp,
"text"
) .
","
.
76
$ilDB
->quote($a_attribs[
"directory"
],
"text"
) .
77
")"
);
78
break
;
79
}
80
}
81
88
public
function
handlerEndTag
($a_xml_parser, $a_name)
89
{
90
}
91
}
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:49
ilCOPageDefReader\handlerEndTag
handlerEndTag($a_xml_parser, $a_name)
End tag handler.
Definition:
class.ilCOPageDefReader.php:88
ilCOPageDefReader\clearTables
clearTables()
Clear definition tables.
Definition:
class.ilCOPageDefReader.php:34
ilDBInterface
ilCOPageDefReader\__construct
__construct(\ilDBInterface $db)
Definition:
class.ilCOPageDefReader.php:18
$ilDB
global $ilDB
Definition:
storeScorm2004.php:16
ilCOPageDefReader\getDB
getDB()
Definition:
class.ilCOPageDefReader.php:23
ilCOPageDefReader\$db
$db
Definition:
class.ilCOPageDefReader.php:16
Services
COPage
classes
Setup
class.ilCOPageDefReader.php
Generated on Thu Apr 10 2025 21:01:26 for ILIAS by
1.8.13 (using
Doxyfile
)