ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilObjectFactoryWrapper Class Reference

Class ilObjectFactoryWrapper. More...

+ Inheritance diagram for ilObjectFactoryWrapper:
+ Collaboration diagram for ilObjectFactoryWrapper:

Public Member Functions

 getInstanceByRefId ($a_ref_id, $stop_on_error=true)
 

Static Public Member Functions

static singleton ()
 

Static Public Attributes

static $instance = null
 

Detailed Description

Class ilObjectFactoryWrapper.

Wraps around static class ilObjectFactory to make the object factory exchangeable in ilObjStudyProgramm for testing purpose.

Author
: Richard Klees richa.nosp@m.rd.k.nosp@m.lees@.nosp@m.conc.nosp@m.epts-.nosp@m.and-.nosp@m.train.nosp@m.ing..nosp@m.de

Definition at line 15 of file class.ilObjectFactoryWrapper.php.

Member Function Documentation

◆ getInstanceByRefId()

ilObjectFactoryWrapper::getInstanceByRefId (   $a_ref_id,
  $stop_on_error = true 
)

Definition at line 25 of file class.ilObjectFactoryWrapper.php.

References ilObjectFactory\getInstanceByRefId().

25  {
26  return ilObjectFactory::getInstanceByRefId($a_ref_id, $stop_on_error);
27  }
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
+ Here is the call graph for this function:

◆ singleton()

static ilObjectFactoryWrapper::singleton ( )
static

Definition at line 18 of file class.ilObjectFactoryWrapper.php.

Referenced by ilObjStudyProgramme\__construct(), ilObjStudyProgrammeTreeGUI\confirmedDelete(), ilObjStudyProgrammeTreeGUI\create(), ilObjStudyProgrammeTreeExplorerGUI\getChildsOfNode(), ilObjectFactoryWrapperMock\getInstanceByRefId(), and ilObjStudyProgrammeTreeGUI\storeTreeOrder().

18  {
19  if (self::$instance === null) {
20  self::$instance = new ilObjectFactoryWrapper();
21  }
22  return self::$instance;
23  }
Class ilObjectFactoryWrapper.
+ Here is the caller graph for this function:

Field Documentation

◆ $instance

ilObjectFactoryWrapper::$instance = null
static

Definition at line 16 of file class.ilObjectFactoryWrapper.php.


The documentation for this class was generated from the following file: