ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilConditionSet Class Reference

Condition set Note: This object currently focuses on repository objects as targets. More...

+ Collaboration diagram for ilConditionSet:

Public Member Functions

 __construct (array $conditions)
 
 getConditions ()
 
 withHiddenStatus (bool $hidden_status)
 Set hidden status (trigger objects should be hidden in presentation) More...
 
 getHiddenStatus ()
 
 withAllObligatory ()
 Set all conditions being obligatory (standard behaviour) More...
 
 getAllObligatory ()
 
 withNumObligatory (int $num_obligatory)
 Set number of obligatory conditions. More...
 
 getNumObligatory ()
 Get number of obligatory conditions. More...
 

Protected Attributes

bool $hidden_status = null
 
bool $all_obligatory = null
 
array $conditions
 
int $num_obligatory = null
 

Detailed Description

Condition set Note: This object currently focuses on repository objects as targets.

It does not make use of the SHARED_CONDITIONS mode (ref_handling will be 1 for these items).

Author
killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 29 of file class.ilConditionSet.php.

Constructor & Destructor Documentation

◆ __construct()

ilConditionSet::__construct ( array  $conditions)
Parameters
ilCondition[]

Definition at line 42 of file class.ilConditionSet.php.

References $conditions.

43  {
44  $this->conditions = $conditions;
45  }

Member Function Documentation

◆ getAllObligatory()

ilConditionSet::getAllObligatory ( )

Definition at line 80 of file class.ilConditionSet.php.

References $all_obligatory.

80  : ?bool
81  {
82  return $this->all_obligatory;
83  }

◆ getConditions()

ilConditionSet::getConditions ( )
Returns
ilCondition[]

Definition at line 50 of file class.ilConditionSet.php.

References $conditions.

50  : array
51  {
52  return $this->conditions;
53  }

◆ getHiddenStatus()

ilConditionSet::getHiddenStatus ( )

Definition at line 65 of file class.ilConditionSet.php.

References $hidden_status.

65  : ?bool
66  {
67  return $this->hidden_status;
68  }

◆ getNumObligatory()

ilConditionSet::getNumObligatory ( )

Get number of obligatory conditions.

Definition at line 98 of file class.ilConditionSet.php.

References $num_obligatory.

98  : ?int
99  {
100  return $this->num_obligatory;
101  }

◆ withAllObligatory()

ilConditionSet::withAllObligatory ( )

Set all conditions being obligatory (standard behaviour)

Definition at line 73 of file class.ilConditionSet.php.

74  {
75  $clone = clone $this;
76  $clone->all_obligatory = true;
77  return $clone;
78  }
Condition set Note: This object currently focuses on repository objects as targets.

◆ withHiddenStatus()

ilConditionSet::withHiddenStatus ( bool  $hidden_status)

Set hidden status (trigger objects should be hidden in presentation)

Definition at line 58 of file class.ilConditionSet.php.

References $hidden_status.

59  {
60  $clone = clone $this;
61  $clone->hidden_status = $hidden_status;
62  return $clone;
63  }
Condition set Note: This object currently focuses on repository objects as targets.

◆ withNumObligatory()

ilConditionSet::withNumObligatory ( int  $num_obligatory)

Set number of obligatory conditions.

Definition at line 88 of file class.ilConditionSet.php.

References $num_obligatory.

89  {
90  $clone = clone $this;
91  $clone->num_obligatory = $num_obligatory;
92  return $clone;
93  }
Condition set Note: This object currently focuses on repository objects as targets.

Field Documentation

◆ $all_obligatory

bool ilConditionSet::$all_obligatory = null
protected

Definition at line 32 of file class.ilConditionSet.php.

Referenced by getAllObligatory().

◆ $conditions

array ilConditionSet::$conditions
protected

Definition at line 36 of file class.ilConditionSet.php.

Referenced by __construct(), and getConditions().

◆ $hidden_status

bool ilConditionSet::$hidden_status = null
protected

Definition at line 31 of file class.ilConditionSet.php.

Referenced by getHiddenStatus(), and withHiddenStatus().

◆ $num_obligatory

int ilConditionSet::$num_obligatory = null
protected

Definition at line 37 of file class.ilConditionSet.php.

Referenced by getNumObligatory(), and withNumObligatory().


The documentation for this class was generated from the following file: