ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 {
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 }
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)