ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
public
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
public
function
handlerBeginTag
($a_xml_parser, $a_name, $a_attribs, $a_comp)
35
{
36
global
$ilDB
;
37
38
switch
($a_name) {
39
case
"pagecontent"
:
40
$ilDB->manipulate(
"INSERT INTO copg_pc_def "
.
41
"(pc_type, name, component, directory, int_links, style_classes, xsl, def_enabled) VALUES ("
.
42
$ilDB->quote($a_attribs[
"pc_type"
],
"text"
) .
","
.
43
$ilDB->quote($a_attribs[
"name"
],
"text"
) .
","
.
44
$ilDB->quote($a_comp,
"text"
) .
","
.
45
$ilDB->quote($a_attribs[
"directory"
],
"text"
) .
","
.
46
$ilDB->quote($a_attribs[
"int_links"
],
"integer"
) .
","
.
47
$ilDB->quote($a_attribs[
"style_classes"
],
"integer"
) .
","
.
48
$ilDB->quote($a_attribs[
"xsl"
],
"integer"
) .
","
.
49
$ilDB->quote($a_attribs[
"def_enabled"
],
"integer"
) .
50
")"
);
51
break
;
52
53
case
"pageobject"
:
54
$ilDB->manipulate(
"INSERT INTO copg_pobj_def "
.
55
"(parent_type, class_name, component, directory) VALUES ("
.
56
$ilDB->quote($a_attribs[
"parent_type"
],
"text"
) .
","
.
57
$ilDB->quote($a_attribs[
"class_name"
],
"text"
) .
","
.
58
$ilDB->quote($a_comp,
"text"
) .
","
.
59
$ilDB->quote($a_attribs[
"directory"
],
"text"
) .
60
")"
);
61
break
;
62
}
63
}
64
71
public
function
handlerEndTag
($a_xml_parser, $a_name)
72
{
73
}
74
}
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:71
ilCOPageDefReader\clearTables
clearTables()
Clear definition tables.
Definition:
class.ilCOPageDefReader.php:19
$ilDB
global $ilDB
Definition:
storeScorm2004.php:16
php
setup
classes
class.ilCOPageDefReader.php
Generated on Thu Jan 16 2025 19:02:36 for ILIAS by
1.8.13 (using
Doxyfile
)