30 if (self::$pc_def == null)
32 $set = $ilDB->query(
"SELECT * FROM copg_pc_def ");
33 while ($rec = $ilDB->fetchAssoc($set))
35 $rec[
"pc_class"] =
"ilPC".$rec[
"name"];
36 $rec[
"pc_gui_class"] =
"ilPC".$rec[
"name"].
"GUI";
37 self::$pc_gui_classes[] = $rec[
"pc_gui_class"];
38 self::$pc_gui_classes_lc[] = strtolower($rec[
"pc_gui_class"]);
39 self::$pc_def[$rec[
"pc_type"]] = $rec;
40 self::$pc_def_by_name[$rec[
"name"]] = $rec;
41 self::$pc_def_by_gui_class_cl[strtolower($rec[
"pc_gui_class"])] = $rec;
68 return self::$pc_def[$a_pc_type];
80 return self::$pc_def_by_name[$a_pc_name];
92 $a_gui_class_name = strtolower($a_gui_class_name);
93 return self::$pc_def_by_gui_class_cl[$a_gui_class_name];
105 $pc_class =
"ilPC".$pc_def[
"name"];
106 $pc_path =
"./".$pc_def[
"component"].
"/".
$pc_def[
"directory"].
"/class.".$pc_class.
".php";
107 include_once($pc_path);
119 $pc_class =
"ilPC".$pc_def[
"name"].
"GUI";
120 $pc_path =
"./".$pc_def[
"component"].
"/".
$pc_def[
"directory"].
"/class.".$pc_class.
".php";
121 include_once($pc_path);
134 return in_array($a_class_name, self::$pc_gui_classes_lc);
138 return in_array($a_class_name, self::$pc_gui_classes);