ILIAS  release_8 Revision v8.24
ilPageObjectFactory 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 ilPageObjectFactory:

Static Public Member Functions

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

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 Page object factory

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

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

Member Function Documentation

◆ getConfigInstance()

static ilPageObjectFactory::getConfigInstance ( string  $a_parent_type)
static

Get page config instance.

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

47 : ilPageConfig {
48 $def = ilCOPageObjDef::getDefinitionByParentType($a_parent_type);
49 $class = $def["class_name"] . "Config";
50 $path = "./" . $def["component"] . "/" . $def["directory"] . "/class." . $class . ".php";
51 $cfg = new $class();
52
53 return $cfg;
54 }
static getDefinitionByParentType(string $a_parent_type)
Get definition by parent type.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$path
Definition: ltiservices.php:32

Referenced by ilPageObject\initPageConfig().

+ Here is the caller graph for this function:

◆ getInstance()

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

Get page object instance.

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

34 : ilPageObject {
35 $def = ilCOPageObjDef::getDefinitionByParentType($a_parent_type);
36 $class = $def["class_name"];
37 $obj = new $class($a_id, $a_old_nr, $a_lang);
38
39 return $obj;
40 }
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)

Referenced by ilPCContentTemplate\create(), ilPageObjectGUI\createPageTranslation(), ilLearningModuleImporter\finalProcessing(), ilMediaPoolPageUsagesTableGUI\getItems(), ilMediaObjectUsagesTableGUI\getItems(), ilCOPageExporter\getXmlRepresentation(), ilPageObjectGUI\initPageObject(), ilQuestionPageParser\processPagesToParse(), ILIAS\COPage\ReadingTime\ReadingTimeManager\setMissingReadingTimes(), and ilPageObjectGUI\showMediaFullscreen().

+ Here is the caller graph for this function:

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