ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilConditionService Class Reference

Condition service. More...

+ Collaboration diagram for ilConditionService:

Public Member Functions

 factory ()
 factory More...
 
 util ()
 utilities More...
 

Static Public Member Functions

static getInstance (ilConditionObjectAdapterInterface $cond_obj_adapter=null)
 Get instance. More...
 

Protected Member Functions

 __construct (ilConditionObjectAdapterInterface $cond_obj_adapter=null)
 Constructor. More...
 

Protected Attributes

 $cond_obj_adapter
 

Detailed Description

Condition service.

Author
.de

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

Constructor & Destructor Documentation

◆ __construct()

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

Constructor.

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

References $cond_obj_adapter.

22  {
23  if (is_null($cond_obj_adapter)) {
24  $this->cond_obj_adapter = new ilConditionObjectAdapter();
25  }
26  }
Wraps ilObject dependencies.

Member Function Documentation

◆ factory()

ilConditionService::factory ( )

factory

Returns
ilConditionFactory

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

44  {
45  return new ilConditionFactory($this->cond_obj_adapter);
46  }

◆ getInstance()

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

Get instance.

Returns
ilConditionService

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

References $cond_obj_adapter.

34  {
35  return new self($cond_obj_adapter);
36  }

◆ util()

ilConditionService::util ( )

utilities

Returns
ilConditionUtil

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

54  {
55  return new ilConditionUtil();
56  }
Condition utility object.

Field Documentation

◆ $cond_obj_adapter

ilConditionService::$cond_obj_adapter
protected

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

Referenced by __construct(), and getInstance().


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