ILIAS  release_8 Revision v8.24
class.ilObjectFactoryWrapper.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21require_once("./Services/Object/classes/class.ilObjectFactory.php");
22
32{
33 public static ?ilObjectFactoryWrapper $instance = null;
34
35 public static function singleton(): ilObjectFactoryWrapper
36 {
37 if (self::$instance === null) {
38 self::$instance = new self();
39 }
40 return self::$instance;
41 }
42
43 public function getInstanceByRefId(int $ref_id, bool $stop_on_error = true): ?ilObject
44 {
45 return ilObjectFactory::getInstanceByRefId($ref_id, $stop_on_error);
46 }
47}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
static ilObjectFactoryWrapper $instance
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$ref_id
Definition: ltiauth.php:67