ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilConditionSet Class Reference

Condition set. More...

+ Collaboration diagram for ilConditionSet:

Public Member Functions

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

Protected Attributes

 $hidden_status
 
 $all_obligatory
 
 $conditions
 
 $num_obligatory
 

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 13 of file class.ilConditionSet.php.

Constructor & Destructor Documentation

◆ __construct()

ilConditionSet::__construct ( array  $conditions)

Constructor.

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

References $conditions.

39  {
40  $this->conditions = $conditions;
41  }

Member Function Documentation

◆ getAllObligatory()

ilConditionSet::getAllObligatory ( )

Get with all obligatory.

Returns
bool with all obligatory

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

References $all_obligatory.

92  {
93  return $this->all_obligatory;
94  }

◆ getConditions()

ilConditionSet::getConditions ( )

Get conditions.

Returns
ilCondition[] conditions

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

References $conditions.

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

◆ getHiddenStatus()

ilConditionSet::getHiddenStatus ( )

Get hidden status.

Returns
bool hidden status

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

References $hidden_status.

72  {
73  return $this->hidden_status;
74  }

◆ getNumObligatory()

ilConditionSet::getNumObligatory ( )

Get number of obligatory conditions.

Returns
int number of obligatory conditions

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

References $num_obligatory.

115  {
116  return $this->num_obligatory;
117  }

◆ withAllObligatory()

ilConditionSet::withAllObligatory ( )

Set all conditions being obligatory (standard behaviour)

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

80  {
81  $clone = clone $this;
82  $clone->all_obligatory = true;
83  return $clone;
84  }

◆ withHiddenStatus()

ilConditionSet::withHiddenStatus (   $hidden_status)

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

Parameters
bool$hidden_statushidden status
Returns
self

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

References $hidden_status.

60  {
61  $clone = clone $this;
62  $clone->hidden_status = $hidden_status;
63  return $clone;
64  }

◆ withNumObligatory()

ilConditionSet::withNumObligatory (   $num_obligatory)

Set number of obligatory conditions.

Parameters
int$num_obligatorynumber of obligatory conditions
Returns
self

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

References $num_obligatory.

103  {
104  $clone = clone $this;
105  $clone->num_obligatory = $num_obligatory;
106  return $clone;
107  }

Field Documentation

◆ $all_obligatory

ilConditionSet::$all_obligatory
protected

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

Referenced by getAllObligatory().

◆ $conditions

ilConditionSet::$conditions
protected

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

Referenced by __construct(), and getConditions().

◆ $hidden_status

ilConditionSet::$hidden_status
protected

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

Referenced by getHiddenStatus(), and withHiddenStatus().

◆ $num_obligatory

ilConditionSet::$num_obligatory
protected

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

Referenced by getNumObligatory(), and withNumObligatory().


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