ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilConditionService 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 ilConditionService:

Public Member Functions

 factory ()
 
 util ()
 

Static Public Member Functions

static getInstance (ilConditionObjectAdapterInterface $cond_obj_adapter=null)
 

Protected Member Functions

 __construct (?ilConditionObjectAdapterInterface $cond_obj_adapter=null)
 

Protected Attributes

ilConditionObjectAdapterInterface $cond_obj_adapter
 

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 Condition service

Author
.de

Definition at line 26 of file class.ilConditionService.php.

Constructor & Destructor Documentation

◆ __construct()

ilConditionService::__construct ( ?ilConditionObjectAdapterInterface  $cond_obj_adapter = null)
protected

Definition at line 30 of file class.ilConditionService.php.

References $cond_obj_adapter.

31  {
32  if (is_null($cond_obj_adapter)) {
33  $this->cond_obj_adapter = new ilConditionObjectAdapter();
34  } else {
35  $this->cond_obj_adapter = $cond_obj_adapter;
36  }
37  }
Wraps ilObject dependencies.
ilConditionObjectAdapterInterface $cond_obj_adapter

Member Function Documentation

◆ factory()

ilConditionService::factory ( )

Definition at line 44 of file class.ilConditionService.php.

45  {
46  return new ilConditionFactory($this->cond_obj_adapter ?? new ilConditionObjectAdapter());
47  }
Wraps ilObject dependencies.

◆ getInstance()

static ilConditionService::getInstance ( ilConditionObjectAdapterInterface  $cond_obj_adapter = null)
static

Definition at line 39 of file class.ilConditionService.php.

References $cond_obj_adapter.

40  {
41  return new self($cond_obj_adapter);
42  }
ilConditionObjectAdapterInterface $cond_obj_adapter
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ util()

ilConditionService::util ( )

Definition at line 49 of file class.ilConditionService.php.

50  {
51  return new ilConditionUtil();
52  }
Condition utility object Wraps some ilConditionHandler methods (which will become deprecated) Depende...

Field Documentation

◆ $cond_obj_adapter

ilConditionObjectAdapterInterface ilConditionService::$cond_obj_adapter
protected

Definition at line 28 of file class.ilConditionService.php.

Referenced by __construct(), and getInstance().


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