ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilCOPageObjDef Class Reference

COPage page object definition handler. More...

+ Collaboration diagram for ilCOPageObjDef:

Public Member Functions

 getDefinitions ()
 Get definitions. More...
 

Static Public Member Functions

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

Static Public Attributes

static $page_obj_def = null
 

Detailed Description

COPage page object definition handler.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

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

Member Function Documentation

◆ getDefinitionByParentType()

static ilCOPageObjDef::getDefinitionByParentType (   $a_parent_type)
static

Get definition by parent type.

Parameters
string$a_parent_typeparent type
Returns
array definition

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

References init().

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

55  {
56  self::init();
57  return self::$page_obj_def[$a_parent_type];
58  }
while(count($oldTaskList) > 0) foreach(array_keys($newTaskList) as $task) init()
Definition: build.php:77
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDefinitions()

ilCOPageObjDef::getDefinitions ( )

Get definitions.

Parameters

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

References init().

43  {
44  self::init();
45  return self::$page_obj_def;
46  }
while(count($oldTaskList) > 0) foreach(array_keys($newTaskList) as $task) init()
Definition: build.php:77
+ Here is the call graph for this function:

◆ init()

static ilCOPageObjDef::init ( )
static

Init.

Parameters

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

References $DIC.

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

Field Documentation

◆ $page_obj_def

ilCOPageObjDef::$page_obj_def = null
static

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


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