3 declare(strict_types=1);
     9     protected \ilDBInterface 
$db;
    20         $this->db->manipulate(
"DELETE FROM copg_pc_def");
    21         $this->db->manipulate(
"DELETE FROM copg_pobj_def");
    30     public function endComponent(
string $component, 
string $type): void
    32         $this->component = null;
    36     public function beginTag(
string $name, array $attributes): void
    40                 $this->db->manipulate(
"INSERT INTO copg_pc_def " .
    41                     "(pc_type, name, component, directory, int_links, style_classes, xsl, def_enabled, top_item, order_nr) VALUES (" .
    42                     $this->db->quote($attributes[
"pc_type"], 
"text") . 
"," .
    43                     $this->db->quote($attributes[
"name"], 
"text") . 
"," .
    44                     $this->db->quote($this->type . 
"/" . $this->component, 
"text") . 
"," .
    45                     $this->db->quote($attributes[
"directory"], 
"text") . 
"," .
    46                     $this->db->quote($attributes[
"int_links"], 
"integer") . 
"," .
    47                     $this->db->quote($attributes[
"style_classes"], 
"integer") . 
"," .
    48                     $this->db->quote($attributes[
"xsl"], 
"integer") . 
"," .
    49                     $this->db->quote($attributes[
"def_enabled"], 
"integer") . 
"," .
    50                     $this->db->quote($attributes[
"top_item"], 
"integer") . 
"," .
    51                     $this->db->quote($attributes[
"order_nr"], 
"integer") .
    56                 $this->db->manipulate(
"INSERT INTO copg_pobj_def " .
    57                     "(parent_type, class_name, component, directory) VALUES (" .
    58                     $this->db->quote($attributes[
"parent_type"], 
"text") . 
"," .
    59                     $this->db->quote($attributes[
"class_name"], 
"text") . 
"," .
    60                     $this->db->quote($this->type . 
"/" . $this->component, 
"text") . 
"," .
    61                     $this->db->quote($attributes[
"directory"], 
"text") .
    67     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...
 
endTag(string $name)
This is called when a tag ends in the context of the given component.