ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
5 require_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.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
getInstanceByRefId($a_ref_id, $stop_on_error=true)