ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilCOPageObjDef Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilCOPageObjDef:

Public Member Functions

 getDefinitions ()
 Get all definitios. More...
 

Static Public Member Functions

static init ()
 
static getDefinitionByParentType (string $a_parent_type)
 Get definition by parent type. More...
 

Static Public Attributes

static array $page_obj_def = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning COPage page object definition handler

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 23 of file class.ilCOPageObjDef.php.

Member Function Documentation

◆ getDefinitionByParentType()

static ilCOPageObjDef::getDefinitionByParentType ( string  $a_parent_type)
static

Get definition by parent type.

Definition at line 53 of file class.ilCOPageObjDef.php.

Referenced by ilPageObjectFactory\getConfigInstance(), and ilPageObjectFactory\getInstance().

53  : array
54  {
55  self::init();
56  return self::$page_obj_def[$a_parent_type];
57  }
+ Here is the caller graph for this function:

◆ getDefinitions()

ilCOPageObjDef::getDefinitions ( )

Get all definitios.

Definition at line 44 of file class.ilCOPageObjDef.php.

44  : array
45  {
46  self::init();
47  return self::$page_obj_def;
48  }

◆ init()

static ilCOPageObjDef::init ( )
static

Definition at line 27 of file class.ilCOPageObjDef.php.

References $DIC.

27  : 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  }
global $DIC
Definition: feed.php:28

Field Documentation

◆ $page_obj_def

array ilCOPageObjDef::$page_obj_def = null
static

Definition at line 25 of file class.ilCOPageObjDef.php.


The documentation for this class was generated from the following file: