ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilConditionSet.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 
14 {
18  protected $hidden_status;
19 
23  protected $all_obligatory;
24 
28  protected $conditions;
29 
33  protected $num_obligatory;
34 
38  public function __construct(array $conditions)
39  {
40  $this->conditions = $conditions;
41  }
42 
48  public function getConditions()
49  {
50  return $this->conditions;
51  }
52 
60  {
61  $clone = clone $this;
62  $clone->hidden_status = $hidden_status;
63  return $clone;
64  }
65 
71  public function getHiddenStatus()
72  {
73  return $this->hidden_status;
74  }
75 
79  public function withAllObligatory()
80  {
81  $clone = clone $this;
82  $clone->all_obligatory = true;
83  return $clone;
84  }
85 
91  public function getAllObligatory()
92  {
93  return $this->all_obligatory;
94  }
95 
103  {
104  $clone = clone $this;
105  $clone->num_obligatory = $num_obligatory;
106  return $clone;
107  }
108 
114  public function getNumObligatory()
115  {
116  return $this->num_obligatory;
117  }
118 }
withAllObligatory()
Set all conditions being obligatory (standard behaviour)
getNumObligatory()
Get number of obligatory conditions.
__construct(array $conditions)
Constructor.
getAllObligatory()
Get with all obligatory.
withHiddenStatus($hidden_status)
Set hidden status (trigger objects should be hidden in presentation)
getHiddenStatus()
Get hidden status.
withNumObligatory($num_obligatory)
Set number of obligatory conditions.
getConditions()
Get conditions.