ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilCOPageObjDef.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
13 {
14  public static $page_obj_def = null;
15 
22  public static function init()
23  {
24  global $DIC;
25 
26  $db = $DIC->database();
27 
28  if (self::$page_obj_def == null) {
29  $set = $db->query("SELECT * FROM copg_pobj_def ");
30  while ($rec = $db->fetchAssoc($set)) {
31  self::$page_obj_def[$rec["parent_type"]] = $rec;
32  }
33  }
34  }
35 
42  public function getDefinitions()
43  {
44  self::init();
45  return self::$page_obj_def;
46  }
47 
54  public static function getDefinitionByParentType($a_parent_type)
55  {
56  self::init();
57  return self::$page_obj_def[$a_parent_type];
58  }
59 }
static getDefinitionByParentType($a_parent_type)
Get definition by parent type.
global $DIC
Definition: saml.php:7
COPage page object definition handler.
static init()
Init.
getDefinitions()
Get definitions.