ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilConditionSet.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
29{
30 protected ?bool $hidden_status = null;
31 protected ?bool $all_obligatory = null;
35 protected array $conditions;
36 protected ?int $num_obligatory = null;
37
41 public function __construct(array $conditions)
42 {
43 $this->conditions = $conditions;
44 }
45
49 public function getConditions(): array
50 {
51 return $this->conditions;
52 }
53
58 {
59 $clone = clone $this;
60 $clone->hidden_status = $hidden_status;
61 return $clone;
62 }
63
64 public function getHiddenStatus(): ?bool
65 {
67 }
68
73 {
74 $clone = clone $this;
75 $clone->all_obligatory = true;
76 return $clone;
77 }
78
79 public function getAllObligatory(): ?bool
80 {
82 }
83
88 {
89 $clone = clone $this;
90 $clone->num_obligatory = $num_obligatory;
91 return $clone;
92 }
93
97 public function getNumObligatory(): ?int
98 {
100 }
101}
Condition set Note: This object currently focuses on repository objects as targets.
getNumObligatory()
Get number of obligatory conditions.
__construct(array $conditions)
withHiddenStatus(bool $hidden_status)
Set hidden status (trigger objects should be hidden in presentation)
withAllObligatory()
Set all conditions being obligatory (standard behaviour)
withNumObligatory(int $num_obligatory)
Set number of obligatory conditions.