ILIAS  release_8 Revision v8.24
ilCondition Class Reference

Condition class. More...

+ Collaboration diagram for ilCondition:

Public Member Functions

 __construct (ilConditionTrigger $trigger, string $operator, ?string $value=null)
 
 getTrigger ()
 
 getOperator ()
 
 getValue ()
 
 withObligatory (bool $obligatory)
 
 getObligatory ()
 
 withId (int $id)
 
 getId ()
 

Protected Attributes

ilConditionTrigger $trigger
 
string $operator
 
string $value
 
bool $obligatory = false
 
int $id
 

Detailed Description

Condition class.

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

Definition at line 27 of file class.ilCondition.php.

Constructor & Destructor Documentation

◆ __construct()

ilCondition::__construct ( ilConditionTrigger  $trigger,
string  $operator,
?string  $value = null 
)

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

36 {
37 $this->trigger = $trigger;
38 $this->operator = $operator;
39 $this->value = $value;
40 }
ilConditionTrigger $trigger

References $operator, $trigger, and $value.

Member Function Documentation

◆ getId()

ilCondition::getId ( )

Definition at line 76 of file class.ilCondition.php.

76 : int
77 {
78 return $this->id;
79 }

References $id.

◆ getObligatory()

ilCondition::getObligatory ( )

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

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

References $obligatory.

◆ getOperator()

ilCondition::getOperator ( )

Definition at line 47 of file class.ilCondition.php.

47 : string
48 {
49 return $this->operator;
50 }

References $operator.

◆ getTrigger()

ilCondition::getTrigger ( )

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

43 {
44 return $this->trigger;
45 }
Represents a condition trigger object.

References $trigger.

◆ getValue()

ilCondition::getValue ( )

Definition at line 52 of file class.ilCondition.php.

52 : ?string
53 {
54 return $this->value;
55 }

References $value.

◆ withId()

ilCondition::withId ( int  $id)

Definition at line 69 of file class.ilCondition.php.

70 {
71 $clone = clone $this;
72 $clone->id = $id;
73 return $clone;
74 }
Condition class.

References $id.

◆ withObligatory()

ilCondition::withObligatory ( bool  $obligatory)

Definition at line 57 of file class.ilCondition.php.

58 {
59 $clone = clone $this;
60 $clone->obligatory = $obligatory;
61 return $clone;
62 }

References $obligatory.

Field Documentation

◆ $id

int ilCondition::$id
protected

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

Referenced by getId(), and withId().

◆ $obligatory

bool ilCondition::$obligatory = false
protected

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

Referenced by getObligatory(), and withObligatory().

◆ $operator

string ilCondition::$operator
protected

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

Referenced by __construct(), and getOperator().

◆ $trigger

ilConditionTrigger ilCondition::$trigger
protected

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

Referenced by __construct(), and getTrigger().

◆ $value

string ilCondition::$value
protected

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

Referenced by __construct(), and getValue().


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