ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
class.ilPageObjectFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 public static function getInstance(
24 string $a_parent_type,
25 int $a_id = 0,
26 int $a_old_nr = 0,
27 string $a_lang = "-"
28 ): ilPageObject {
29 $def = ilCOPageObjDef::getDefinitionByParentType($a_parent_type);
30 $class = $def["class_name"];
31 $obj = new $class($a_id, $a_old_nr, $a_lang);
32
33 return $obj;
34 }
35}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstance(string $a_parent_type, int $a_id=0, int $a_old_nr=0, string $a_lang="-")
Class ilPageObject Handles PageObjects of ILIAS Learning Modules (see ILIAS DTD)