ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilObjectFactoryWrapper.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
30 {
31  public static ?ilObjectFactoryWrapper $instance = null;
32 
33  public static function singleton(): ilObjectFactoryWrapper
34  {
35  if (self::$instance === null) {
36  self::$instance = new self();
37  }
38  return self::$instance;
39  }
40 
41  public function getInstanceByRefId(int $ref_id, bool $stop_on_error = true): ?ilObject
42  {
43  return ilObjectFactory::getInstanceByRefId($ref_id, $stop_on_error);
44  }
45 }
$ref_id
Definition: ltiauth.php:66
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...
static ilObjectFactoryWrapper $instance
getInstanceByRefId(int $ref_id, bool $stop_on_error=true)