ILIAS
release_4-4 Revision
◀ ilDoc Overview
class.ilPageObjectFactory.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
12
class
ilPageObjectFactory
13
{
23
static
function
getInstance
($a_parent_type, $a_id = 0, $a_old_nr = 0, $a_lang =
"-"
)
24
{
25
include_once(
"./Services/COPage/classes/class.ilCOPageObjDef.php"
);
26
$def =
ilCOPageObjDef::getDefinitionByParentType
($a_parent_type);
27
$class = $def[
"class_name"
];
28
$path
=
"./"
.$def[
"component"
].
"/"
.$def[
"directory"
].
"/class."
.$class.
".php"
;
29
include_once(
$path
);
30
$obj =
new
$class($a_id , $a_old_nr, $a_lang);
31
32
return
$obj;
33
}
34
41
static
function
getConfigInstance
($a_parent_type)
42
{
43
include_once(
"./Services/COPage/classes/class.ilCOPageObjDef.php"
);
44
$def =
ilCOPageObjDef::getDefinitionByParentType
($a_parent_type);
45
$class = $def[
"class_name"
].
"Config"
;
46
$path
=
"./"
.$def[
"component"
].
"/"
.$def[
"directory"
].
"/class."
.$class.
".php"
;
47
include_once(
$path
);
48
$cfg =
new
$class();
49
50
return
$cfg;
51
}
52
53
}
54
55
?>
ilCOPageObjDef\getDefinitionByParentType
static getDefinitionByParentType($a_parent_type)
Get definition by parent type.
Definition:
class.ilCOPageObjDef.php:54
ilPageObjectFactory\getConfigInstance
static getConfigInstance($a_parent_type)
Get page config instance.
Definition:
class.ilPageObjectFactory.php:41
ilPageObjectFactory\getInstance
static getInstance($a_parent_type, $a_id=0, $a_old_nr=0, $a_lang="-")
Get page object instance.
Definition:
class.ilPageObjectFactory.php:23
$path
$path
Definition:
index.php:22
ilPageObjectFactory
Page object factory.
Definition:
class.ilPageObjectFactory.php:12
Services
COPage
classes
class.ilPageObjectFactory.php
Generated on Mon Dec 21 2020 19:01:12 for ILIAS by
1.8.13 (using
Doxyfile
)