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

Condition class. More...

+ Collaboration diagram for ilCondition:

Public Member Functions

 __construct (ilConditionTrigger $trigger, $operator, $value=null)
 Constructor. More...
 
 getTrigger ()
 Get trigger. More...
 
 getOperator ()
 Get operator. More...
 
 getValue ()
 Get value. More...
 
 withObligatory ($obligatory)
 Set obligatory. More...
 
 getObligatory ()
 Get obligatory. More...
 
 withId ($id)
 Set id. More...
 
 getId ()
 Get id. More...
 

Protected Attributes

 $trigger
 
 $operator
 
 $value
 
 $obligatory
 
 $id
 

Detailed Description

Condition class.

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

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

Constructor & Destructor Documentation

◆ __construct()

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

Constructor.

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

References $operator, $trigger, and $value.

42  {
43  $this->trigger = $trigger;
44  $this->operator = $operator;
45  $this->value = $value;
46  }

Member Function Documentation

◆ getId()

ilCondition::getId ( )

Get id.

Returns
int id

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

References $id.

120  {
121  return $this->id;
122  }

◆ getObligatory()

ilCondition::getObligatory ( )

Get obligatory.

Returns
bool obligatory

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

References $obligatory.

97  {
98  return $this->obligatory;
99  }

◆ getOperator()

ilCondition::getOperator ( )

Get operator.

Returns
string operator

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

References $operator.

64  {
65  return $this->operator;
66  }

◆ getTrigger()

ilCondition::getTrigger ( )

Get trigger.

Returns
ilConditionTrigger trigger

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

References $trigger.

54  {
55  return $this->trigger;
56  }

◆ getValue()

ilCondition::getValue ( )

Get value.

Returns
string value

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

References $value.

74  {
75  return $this->value;
76  }

◆ withId()

ilCondition::withId (   $id)

Set id.

Parameters
int$idid
Returns
self

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

References $id.

108  {
109  $clone = clone $this;
110  $clone->id = $id;
111  return $clone;
112  }

◆ withObligatory()

ilCondition::withObligatory (   $obligatory)

Set obligatory.

Parameters
bool$obligatoryobligatory
Returns
self

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

References $obligatory.

85  {
86  $clone = clone $this;
87  $clone->obligatory = $obligatory;
88  return $clone;
89  }

Field Documentation

◆ $id

ilCondition::$id
protected

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

Referenced by getId(), and withId().

◆ $obligatory

ilCondition::$obligatory
protected

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

Referenced by getObligatory(), and withObligatory().

◆ $operator

ilCondition::$operator
protected

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

Referenced by __construct(), and getOperator().

◆ $trigger

ilCondition::$trigger
protected

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

Referenced by __construct(), and getTrigger().

◆ $value

ilCondition::$value
protected

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

Referenced by __construct(), and getValue().


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