26 public static function init()
30 $db = $DIC->database();
32 if (self::$pc_def == null) {
33 $set = $db->query(
"SELECT * FROM copg_pc_def ");
34 while ($rec = $db->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];
104 $pc_def = self::getPCDefinitionByName($a_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);
118 $pc_def = self::getPCDefinitionByName($a_name);
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);
133 return in_array($a_class_name, self::$pc_gui_classes_lc);
135 return in_array($a_class_name, self::$pc_gui_classes);
static isPCGUIClassName($a_class_name, $a_lower_case=false)
Is given class name a pc gui class?
static getPCDefinitionByName($a_pc_name)
Get PC definition by name.
COPage PC elements definition handler.
static getPCDefinitionByGUIClassName($a_gui_class_name)
Get PC definition by name.
static getPCDefinitions()
Get PC definitions.
static requirePCClassByName($a_name)
Get instance.
static $pc_gui_classes_lc
static $pc_def_by_gui_class_cl
static requirePCGUIClassByName($a_name)
Get instance.
while(count($oldTaskList) > 0) foreach(array_keys($newTaskList) as $task) init()
static getPCDefinitionByType($a_pc_type)
Get PC definition by type.