ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilConditionService.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
12 {
16  protected $cond_obj_adapter;
17 
22  {
23  if (is_null($cond_obj_adapter)) {
24  $this->cond_obj_adapter = new ilConditionObjectAdapter();
25  }
26  }
27 
34  {
35  return new self($cond_obj_adapter);
36  }
37 
43  public function factory()
44  {
45  return new ilConditionFactory($this->cond_obj_adapter);
46  }
47 
53  public function util()
54  {
55  return new ilConditionUtil();
56  }
57 }
Wraps ilObject dependencies.
static getInstance(ilConditionObjectAdapterInterface $cond_obj_adapter=null)
Get instance.
Condition utility object.
__construct(ilConditionObjectAdapterInterface $cond_obj_adapter=null)
Constructor.