ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilCOPageObjDef.php
Go to the documentation of this file.
1<?php
2
24{
25 public static ?array $page_obj_def = null;
26
27 public static function init(): void
28 {
29 global $DIC;
30
31 $db = $DIC->database();
32
33 if (self::$page_obj_def == null) {
34 $set = $db->query("SELECT * FROM copg_pobj_def ");
35 while ($rec = $db->fetchAssoc($set)) {
36 self::$page_obj_def[$rec["parent_type"]] = $rec;
37 }
38 }
39 }
40
44 public function getDefinitions(): array
45 {
46 self::init();
48 }
49
53 public static function getDefinitionByParentType(string $a_parent_type): array
54 {
55 self::init();
56 return self::$page_obj_def[$a_parent_type];
57 }
58}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getDefinitions()
Get all definitios.
static array $page_obj_def
static getDefinitionByParentType(string $a_parent_type)
Get definition by parent type.
global $DIC
Definition: shib_login.php:26