ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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 28 of file class.ilConditionSet.php.

Constructor & Destructor Documentation

◆ __construct()

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

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

References $conditions.

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

Member Function Documentation

◆ getAllObligatory()

ilConditionSet::getAllObligatory ( )

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

References $all_obligatory.

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

◆ getConditions()

ilConditionSet::getConditions ( )
Returns
ilCondition[]

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

References $conditions.

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

◆ getHiddenStatus()

ilConditionSet::getHiddenStatus ( )

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

References $hidden_status.

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

◆ getNumObligatory()

ilConditionSet::getNumObligatory ( )

Get number of obligatory conditions.

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

References $num_obligatory.

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

◆ withAllObligatory()

ilConditionSet::withAllObligatory ( )

Set all conditions being obligatory (standard behaviour)

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

73  {
74  $clone = clone $this;
75  $clone->all_obligatory = true;
76  return $clone;
77  }
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 57 of file class.ilConditionSet.php.

References $hidden_status.

58  {
59  $clone = clone $this;
60  $clone->hidden_status = $hidden_status;
61  return $clone;
62  }
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 87 of file class.ilConditionSet.php.

References $num_obligatory.

88  {
89  $clone = clone $this;
90  $clone->num_obligatory = $num_obligatory;
91  return $clone;
92  }
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 31 of file class.ilConditionSet.php.

Referenced by getAllObligatory().

◆ $conditions

array ilConditionSet::$conditions
protected

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

Referenced by __construct(), and getConditions().

◆ $hidden_status

bool ilConditionSet::$hidden_status = null
protected

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

Referenced by getHiddenStatus(), and withHiddenStatus().

◆ $num_obligatory

int ilConditionSet::$num_obligatory = null
protected

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

Referenced by getNumObligatory(), and withNumObligatory().


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