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

References $operator, $trigger, and $value.

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

Member Function Documentation

◆ getId()

ilCondition::getId ( )

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

References $id.

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

◆ getObligatory()

ilCondition::getObligatory ( )

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

References $obligatory.

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

◆ getOperator()

ilCondition::getOperator ( )

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

References $operator.

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

◆ getTrigger()

ilCondition::getTrigger ( )

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

References $trigger.

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

◆ getValue()

ilCondition::getValue ( )

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

References $value.

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

◆ withId()

ilCondition::withId ( int  $id)

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

References $id.

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

◆ withObligatory()

ilCondition::withObligatory ( bool  $obligatory)

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

References $obligatory.

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

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: