19 declare(strict_types=1);
    28     protected \ilDBInterface 
$db;
    39         $this->db = $DIC->database();
    45         $set = $db->
query(
"SELECT * FROM copg_pc_def ORDER BY order_nr");
    46         return $db->fetchAll($set);
    49     protected function init(): void
    52         if ($this->pc_def == null) {
    54                 $rec[
"pc_class"] = 
"ilPC" . $rec[
"name"];
    55                 $rec[
"pc_gui_class"] = 
"ilPC" . $rec[
"name"] . 
"GUI";
    56                 $this->pc_gui_classes[] = $rec[
"pc_gui_class"];
    57                 $this->pc_gui_classes_lc[] = strtolower($rec[
"pc_gui_class"]);
    58                 $this->pc_def[$rec[
"pc_type"]] = $rec;
    59                 $this->pc_def_by_name[$rec[
"name"]] = $rec;
    60                 $this->pc_def_by_gui_class_cl[strtolower($rec[
"pc_gui_class"])] = $rec;
    77         return ($this->pc_def[$a_pc_type] ?? null);
    87         return $this->pc_def_by_name[$a_pc_name];
    94         string $a_gui_class_name
    97         $a_gui_class_name = strtolower($a_gui_class_name);
    98         return $this->pc_def_by_gui_class_cl[$a_gui_class_name];
   102         string $a_class_name,
   103         bool $a_lower_case = 
false   107             return in_array($a_class_name, $this->pc_gui_classes_lc);
   109             return in_array($a_class_name, $this->pc_gui_classes);
   118     ): ?\
ILIAS\
COPage\Editor\Components\PageComponentEditor {
   121         $pc_class = 
"ilPC" . $pc_def[
"name"] . 
"EditorGUI";
   122         if (class_exists($pc_class)) {
   123             return new $pc_class();
   130     ): ?\
ILIAS\
COPage\Editor\Components\PageComponentModelProvider {
   133         $pc_class = 
"ilPC" . $pc_def[
"name"] . 
"ModelProvider";
   134         if (class_exists($pc_class)) {
   135             return new $pc_class();
 Interface Observer  Contains several chained tasks and infos about them. 
 
isPCGUIClassName(string $a_class_name, bool $a_lower_case=false)
 
getPCDefinitionByType(string $a_pc_type)
Get PC definition by type. 
 
getPCDefinitionByName(string $a_pc_name)
Get PC definition by name. 
 
array $pc_def_by_gui_class_cl
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
query(string $query)
Run a (read-only) Query on the database. 
 
getPCEditorInstanceByName(string $a_name)
Get instance. 
 
getPCModelProviderByName(string $a_name)
 
getPCDefinitionByGUIClassName(string $a_gui_class_name)
Get PC definition by name.