ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 26 of file class.ilCondition.php.

Constructor & Destructor Documentation

◆ __construct()

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

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

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

References $operator, $trigger, and $value.

Member Function Documentation

◆ getId()

ilCondition::getId ( )

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

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

References $id.

◆ getObligatory()

ilCondition::getObligatory ( )

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

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

References $obligatory.

◆ getOperator()

ilCondition::getOperator ( )

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

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

References $operator.

◆ getTrigger()

ilCondition::getTrigger ( )

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

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

References $trigger.

◆ getValue()

ilCondition::getValue ( )

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

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

References $value.

◆ withId()

ilCondition::withId ( int  $id)

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

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

References $id.

◆ withObligatory()

ilCondition::withObligatory ( bool  $obligatory)

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

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

References $obligatory.

Field Documentation

◆ $id

int ilCondition::$id
protected

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

Referenced by getId(), and withId().

◆ $obligatory

bool ilCondition::$obligatory = false
protected

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

Referenced by getObligatory(), and withObligatory().

◆ $operator

string ilCondition::$operator
protected

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

Referenced by __construct(), and getOperator().

◆ $trigger

ilConditionTrigger ilCondition::$trigger
protected

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

Referenced by __construct(), and getTrigger().

◆ $value

string ilCondition::$value
protected

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

Referenced by __construct(), and getValue().


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