ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilCondition.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 $trigger;
17 
21  protected $operator;
22 
26  protected $value;
27 
31  protected $obligatory;
32 
36  protected $id;
37 
42  {
43  $this->trigger = $trigger;
44  $this->operator = $operator;
45  $this->value = $value;
46  }
47 
53  public function getTrigger()
54  {
55  return $this->trigger;
56  }
57 
63  public function getOperator()
64  {
65  return $this->operator;
66  }
67 
73  public function getValue()
74  {
75  return $this->value;
76  }
77 
84  public function withObligatory($obligatory)
85  {
86  $clone = clone $this;
87  $clone->obligatory = $obligatory;
88  return $clone;
89  }
90 
96  public function getObligatory()
97  {
98  return $this->obligatory;
99  }
100 
107  public function withId($id)
108  {
109  $clone = clone $this;
110  $clone->id = $id;
111  return $clone;
112  }
113 
119  public function getId()
120  {
121  return $this->id;
122  }
123 }
getTrigger()
Get trigger.
__construct(ilConditionTrigger $trigger, $operator, $value=null)
Constructor.
getOperator()
Get operator.
getValue()
Get value.
withId($id)
Set id.
getObligatory()
Get obligatory.
Condition class.
Represents a condition trigger object.
withObligatory($obligatory)
Set obligatory.