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

A PostCondition does restrict the progression of a user through the learning sequence. More...

+ Collaboration diagram for ilLSPostCondition:

Public Member Functions

 __construct (int $ref_id, string $operator, $value=null)
 
 getRefId ()
 
 getConditionOperator ()
 
 withConditionOperator (string $operator)
 
 getValue ()
 
 withValue ($value)
 

Protected Attributes

 $ref_id
 
 $operator
 
 $value
 

Detailed Description

A PostCondition does restrict the progression of a user through the learning sequence.

Thus, instead of saying "You may only _visit_ this object if you did this", a PostCondition says "you may only _leave_ this object if you did this".

LSPostConditions are being applied by the LearningSequenceConditionController.

Author
Nils Haagen nils..nosp@m.haag.nosp@m.en@co.nosp@m.ncep.nosp@m.ts-an.nosp@m.d-tr.nosp@m.ainin.nosp@m.g.de

Definition at line 14 of file class.ilLSPostCondition.php.

Constructor & Destructor Documentation

◆ __construct()

ilLSPostCondition::__construct ( int  $ref_id,
string  $operator,
  $value = null 
)

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

References $operator, $ref_id, and $value.

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

Member Function Documentation

◆ getConditionOperator()

ilLSPostCondition::getConditionOperator ( )

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

References $operator.

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

◆ getRefId()

ilLSPostCondition::getRefId ( )

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

References $ref_id.

41  : int
42  {
43  return $this->ref_id;
44  }

◆ getValue()

ilLSPostCondition::getValue ( )

Definition at line 59 of file class.ilLSPostCondition.php.

References $value.

60  {
61  return $this->value;
62  }

◆ withConditionOperator()

ilLSPostCondition::withConditionOperator ( string  $operator)

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

References $operator.

53  {
54  $clone = clone $this;
55  $clone->operator = $operator;
56  return $clone;
57  }
A PostCondition does restrict the progression of a user through the learning sequence.

◆ withValue()

ilLSPostCondition::withValue (   $value)

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

References $value.

65  {
66  $clone = clone $this;
67  $clone->value = $value;
68  return $clone;
69  }
A PostCondition does restrict the progression of a user through the learning sequence.

Field Documentation

◆ $operator

ilLSPostCondition::$operator
protected

◆ $ref_id

ilLSPostCondition::$ref_id
protected

Definition at line 19 of file class.ilLSPostCondition.php.

Referenced by __construct(), and getRefId().

◆ $value

ilLSPostCondition::$value
protected

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

Referenced by __construct(), getValue(), and withValue().


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