ILIAS  release_8 Revision v8.24
ilObjectFactoryWrapper Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilObjectFactoryWrapper:

Public Member Functions

 getInstanceByRefId (int $ref_id, bool $stop_on_error=true)
 

Static Public Member Functions

static singleton ()
 

Static Public Attributes

static ilObjectFactoryWrapper $instance = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 31 of file class.ilObjectFactoryWrapper.php.

Member Function Documentation

◆ getInstanceByRefId()

ilObjectFactoryWrapper::getInstanceByRefId ( int  $ref_id,
bool  $stop_on_error = true 
)

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

43 : ?ilObject
44 {
45 return ilObjectFactory::getInstanceByRefId($ref_id, $stop_on_error);
46 }
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$ref_id
Definition: ltiauth.php:67

References $ref_id, and ilObjectFactory\getInstanceByRefId().

+ Here is the call graph for this function:

◆ singleton()

static ilObjectFactoryWrapper::singleton ( )
static

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

36 {
37 if (self::$instance === null) {
38 self::$instance = new self();
39 }
40 return self::$instance;
41 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static ilObjectFactoryWrapper $instance

References $instance.

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

+ Here is the caller graph for this function:

Field Documentation

◆ $instance

ilObjectFactoryWrapper ilObjectFactoryWrapper::$instance = null
static

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

Referenced by singleton().


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