3declare(strict_types=1);
34 $this->db->manipulate(
"DELETE FROM il_object_def");
35 $this->db->manipulate(
"DELETE FROM il_object_subobj");
36 $this->db->manipulate(
"DELETE FROM il_object_group");
37 $this->db->manipulate(
"DELETE FROM il_object_sub_type");
43 $this->current_object =
null;
48 $this->component =
null;
49 $this->current_object =
null;
66 $this->db->manipulateF(
67 "INSERT INTO il_object_def (id, class_name, component,location," .
68 "checkbox,inherit,translate,devmode,allow_link,allow_copy,rbac,default_pos," .
69 "default_pres_pos,sideblock,grp," . $this->db->quoteIdentifier(
"system") .
",export,repository,workspace,administration," .
70 "amet,orgunit_permissions,lti_provider,offline_handling) VALUES " .
71 "(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)",
72 array(
"text",
"text",
"text",
"text",
"integer",
"integer",
"text",
"integer",
"integer",
"integer",
73 "integer",
"integer",
"integer",
"integer",
"text",
"integer",
"integer",
"integer",
"integer",
74 'integer',
'integer',
'integer',
'integer',
'integer'),
105 $this->db->manipulateF(
106 "INSERT INTO il_object_subobj (parent, subobj, mmax) VALUES (%s,%s,%s)",
107 array(
"text",
"text",
"integer"),
113 $this->db->manipulateF(
114 "INSERT INTO il_object_subobj (parent, subobj, mmax) VALUES (%s,%s,%s)",
115 array(
"text",
"text",
"integer"),
121 $this->db->manipulateF(
122 "INSERT INTO il_object_group (id, name, default_pres_pos) VALUES (%s,%s,%s)",
123 array(
"text",
"text",
"integer"),
128 $this->db->manipulate(
"INSERT INTO il_object_sub_type " .
129 "(obj_type, sub_type, amet) VALUES (" .
130 $this->db->quote($this->current_object,
"text") .
"," .
131 $this->db->quote(
$attributes[
"id"],
"text") .
"," .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
beginTag(string $name, array $attributes)
This is called when a tag starts in the context of the given component.
endComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component ends.
beginComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component starts.
__construct(ilDBInterface $db)
endTag(string $name)
This is called when a tag ends in the context of the given component.
purge()
This methods is supposed to purge existing data in the provider of the component, so new components c...
An ilComponentDefinitionProcessor processes some attributes from a component.xml (i....