ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

References $operator, $trigger, and $value.

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

Member Function Documentation

◆ getId()

ilCondition::getId ( )

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

References $id.

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

◆ getObligatory()

ilCondition::getObligatory ( )

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

References $obligatory.

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

◆ getOperator()

ilCondition::getOperator ( )

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

References $operator.

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

◆ getTrigger()

ilCondition::getTrigger ( )

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

References $trigger.

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

◆ getValue()

ilCondition::getValue ( )

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

References $value.

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

◆ withId()

ilCondition::withId ( int  $id)

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

References $id.

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

◆ withObligatory()

ilCondition::withObligatory ( bool  $obligatory)

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

References $obligatory.

57  : ilCondition
58  {
59  $clone = clone $this;
60  $clone->obligatory = $obligatory;
61  return $clone;
62  }
Condition class.

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: