ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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.

53 : array
54 {
55 self::init();
56 return self::$page_obj_def[$a_parent_type];
57 }

References init().

+ Here is the call 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();
48 }
static array $page_obj_def

References $page_obj_def, and init().

+ Here is the call graph for this function:

◆ init()

static ilCOPageObjDef::init ( )
static

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

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: shib_login.php:26

References $DIC.

Referenced by getDefinitionByParentType(), and getDefinitions().

+ Here is the caller graph for this function:

Field Documentation

◆ $page_obj_def

array ilCOPageObjDef::$page_obj_def = null
static

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

Referenced by getDefinitions().


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