ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilObjectFactoryWrapper.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2015 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5require_once("./Services/Object/classes/class.ilObjectFactory.php");
6
16{
17 public static $instance = null;
18
19 public static function singleton()
20 {
21 if (self::$instance === null) {
22 self::$instance = new ilObjectFactoryWrapper();
23 }
24 return self::$instance;
25 }
26
27 public function getInstanceByRefId($a_ref_id, $stop_on_error = true)
28 {
29 return ilObjectFactory::getInstanceByRefId($a_ref_id, $stop_on_error);
30 }
31}
An exception for terminatinating execution or to throw for unit testing.
Class ilObjectFactoryWrapper.
getInstanceByRefId($a_ref_id, $stop_on_error=true)
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id