19 declare(strict_types=1);
23 protected \ilDBInterface
$db;
34 $this->db->manipulate(
"DELETE FROM copg_pc_def");
35 $this->db->manipulate(
"DELETE FROM copg_pobj_def");
44 public function endComponent(
string $component,
string $type): void
46 $this->component =
null;
50 public function beginTag(
string $name, array $attributes): void
54 $this->db->manipulate(
"INSERT INTO copg_pc_def " .
55 "(pc_type, name, component, directory, int_links, style_classes, xsl, def_enabled, top_item, order_nr) VALUES (" .
56 $this->db->quote($attributes[
"pc_type"],
"text") .
"," .
57 $this->db->quote($attributes[
"name"],
"text") .
"," .
58 $this->db->quote($this->type .
"/" . $this->component,
"text") .
"," .
59 $this->db->quote($attributes[
"directory"],
"text") .
"," .
60 $this->db->quote($attributes[
"int_links"],
"integer") .
"," .
61 $this->db->quote($attributes[
"style_classes"],
"integer") .
"," .
62 $this->db->quote($attributes[
"xsl"],
"integer") .
"," .
63 $this->db->quote($attributes[
"def_enabled"],
"integer") .
"," .
64 $this->db->quote($attributes[
"top_item"],
"integer") .
"," .
65 $this->db->quote($attributes[
"order_nr"],
"integer") .
70 $this->db->manipulate(
"INSERT INTO copg_pobj_def " .
71 "(parent_type, class_name, component, directory) VALUES (" .
72 $this->db->quote($attributes[
"parent_type"],
"text") .
"," .
73 $this->db->quote($attributes[
"class_name"],
"text") .
"," .
74 $this->db->quote($this->type .
"/" . $this->component,
"text") .
"," .
75 $this->db->quote($attributes[
"directory"],
"text") .
81 public function endTag(
string $name): void
endComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component ends. ...
beginTag(string $name, array $attributes)
This is called when a tag starts in the context of the given component.
beginComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component starts.
An ilComponentDefinitionProcessor processes some attributes from a component.xml (i.e.
__construct(\ilDBInterface $db)
purge()
This methods is supposed to purge existing data in the provider of the component, so new components c...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
endTag(string $name)
This is called when a tag ends in the context of the given component.