ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilObjectFactoryWrapperMock Class Reference

Mock for object factory. More...

+ Inheritance diagram for ilObjectFactoryWrapperMock:
+ Collaboration diagram for ilObjectFactoryWrapperMock:

Public Member Functions

 getInstanceByRefId ($a_ref_id, $stop_on_error=true)
 
- Public Member Functions inherited from ilObjectFactoryWrapper
 getInstanceByRefId ($a_ref_id, $stop_on_error=true)
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectFactoryWrapper
static singleton ()
 
- Static Public Attributes inherited from ilObjectFactoryWrapper
static $instance = null
 

Detailed Description

Mock for object factory.

Definition at line 65 of file mocks.php.

Member Function Documentation

◆ getInstanceByRefId()

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

Definition at line 67 of file mocks.php.

References ilObject\_lookupType(), and ilObjectFactoryWrapper\getInstanceByRefId().

68  {
69  if (ilObject::_lookupType($a_ref_id, true) == "mock") {
70  return new ilStudyProgrammeLeafMock($a_ref_id);
71  }
72  return ilObjectFactoryWrapper::getInstanceByRefId($a_ref_id, $stop_on_error);
73  }
Mock classes for tests.
Definition: mocks.php:20
static _lookupType($a_id, $a_reference=false)
lookup object type
getInstanceByRefId($a_ref_id, $stop_on_error=true)
+ Here is the call graph for this function:

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