ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilPageObjectFactory Class Reference

Page object factory. More...

+ Collaboration diagram for ilPageObjectFactory:

Static Public Member Functions

static getInstance ($a_parent_type, $a_id=0, $a_old_nr=0, $a_lang="-")
 Get page object instance. More...
 
static getConfigInstance ($a_parent_type)
 Get page config instance. More...
 

Detailed Description

Page object factory.

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.ilPageObjectFactory.php.

Member Function Documentation

◆ getConfigInstance()

static ilPageObjectFactory::getConfigInstance (   $a_parent_type)
static

Get page config instance.

Parameters
string$a_parent_typeparent type
Returns
object

Definition at line 41 of file class.ilPageObjectFactory.php.

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 }
static getDefinitionByParentType($a_parent_type)
Get definition by parent type.

References ilCOPageObjDef\getDefinitionByParentType().

Referenced by ilPageObject\initPageConfig().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getInstance()

static ilPageObjectFactory::getInstance (   $a_parent_type,
  $a_id = 0,
  $a_old_nr = 0,
  $a_lang = "-" 
)
static

Get page object instance.

Parameters
string$a_parent_typeparent type
int$a_idpage id
int$a_old_nrhistory number of page
string$a_langlanguage
Returns
object

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

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 }

References ilCOPageObjDef\getDefinitionByParentType().

Referenced by ilPageObject\compareVersion(), ilPageObject\copy(), ilPageObject\copyPageToTranslation(), ilPCContentTemplate\create(), ilPageObjectGUI\createPageTranslation(), ilLearningModuleImporter\finalProcessing(), ilMediaPoolPageUsagesTableGUI\getItems(), ilMediaObjectUsagesTableGUI\getItems(), ilCOPageExporter\getXmlRepresentation(), ilCOPageImporter\importXmlRepresentation(), ilPageObjectGUI\initPageObject(), ilContObjParser\processPagesToParse(), ilPageObjectGUI\showMediaFullscreen(), ilLMObject\updateInternalLinks(), and ilPortfolioPage\updateInternalLinks().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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