ILIAS  release_7 Revision v7.30-3-g800a261c036
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 {
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 {
94 }
95
103 {
104 $clone = clone $this;
105 $clone->num_obligatory = $num_obligatory;
106 return $clone;
107 }
108
114 public function getNumObligatory()
115 {
117 }
118}
An exception for terminatinating execution or to throw for unit testing.
withNumObligatory($num_obligatory)
Set number of obligatory conditions.
getAllObligatory()
Get with all obligatory.
withHiddenStatus($hidden_status)
Set hidden status (trigger objects should be hidden in presentation)
getNumObligatory()
Get number of obligatory conditions.
__construct(array $conditions)
Constructor.
getConditions()
Get conditions.
getHiddenStatus()
Get hidden status.
withAllObligatory()
Set all conditions being obligatory (standard behaviour)