ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 static $instance = null;
17
18 static public function singleton() {
19 if (self::$instance === null) {
20 self::$instance = new ilObjectFactoryWrapper();
21 }
22 return self::$instance;
23 }
24
25 public function getInstanceByRefId($a_ref_id, $stop_on_error = true) {
26 return ilObjectFactory::getInstanceByRefId($a_ref_id, $stop_on_error);
27 }
28}
29
30?>
Class ilObjectFactoryWrapper.
getInstanceByRefId($a_ref_id, $stop_on_error=true)
getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id