ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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{
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}
An exception for terminatinating execution or to throw for unit testing.
static getInstance(ilConditionObjectAdapterInterface $cond_obj_adapter=null)
Get instance.
__construct(ilConditionObjectAdapterInterface $cond_obj_adapter=null)
Constructor.
Condition utility object.