ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilObjectFactoryWrapper.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
30 {
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 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
$ref_id
Definition: ltiauth.php:65
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
Class ilObjectFactoryWrapper.
static ilObjectFactoryWrapper $instance
getInstanceByRefId(int $ref_id, bool $stop_on_error=true)