ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
assAnswerMatchingPair Class Reference

Class for matching question pairs. More...

+ Collaboration diagram for assAnswerMatchingPair:

Public Member Functions

 __construct (assAnswerMatchingTerm $term, assAnswerMatchingDefinition $definition, float $points=0.0)
 
 getTerm ()
 
 withTerm (assAnswerMatchingTerm $term)
 
 getDefinition ()
 
 withDefinition (assAnswerMatchingDefinition $definition)
 
 getPoints ()
 
 withPoints (float $points)
 

Protected Attributes

assAnswerMatchingTerm $term
 
assAnswerMatchingDefinition $definition
 
float $points
 

Detailed Description

Class for matching question pairs.

Author
Helmut Schottmüller helmu.nosp@m.t.sc.nosp@m.hottm.nosp@m.uell.nosp@m.er@ma.nosp@m.c.co.nosp@m.m \

Definition at line 27 of file class.assAnswerMatchingPair.php.

Constructor & Destructor Documentation

◆ __construct()

assAnswerMatchingPair::__construct ( assAnswerMatchingTerm  $term,
assAnswerMatchingDefinition  $definition,
float  $points = 0.0 
)

Definition at line 33 of file class.assAnswerMatchingPair.php.

References $definition, $points, and $term.

37  {
38  $this->term = $term;
39  $this->definition = $definition;
40  $this->points = $points;
41  }
assAnswerMatchingDefinition $definition

Member Function Documentation

◆ getDefinition()

assAnswerMatchingPair::getDefinition ( )

Definition at line 54 of file class.assAnswerMatchingPair.php.

References $definition.

Referenced by assMatchingQuestion\getCorrectSolutionForTextOutput().

55  {
56  return $this->definition;
57  }
assAnswerMatchingDefinition $definition
Class for matching question definitions.
+ Here is the caller graph for this function:

◆ getPoints()

assAnswerMatchingPair::getPoints ( )

Definition at line 65 of file class.assAnswerMatchingPair.php.

References $points.

65  : float
66  {
67  return $this->points;
68  }

◆ getTerm()

assAnswerMatchingPair::getTerm ( )

Definition at line 43 of file class.assAnswerMatchingPair.php.

References $term.

Referenced by assMatchingQuestion\getCorrectSolutionForTextOutput().

44  {
45  return $this->term;
46  }
Class for matching question terms.
+ Here is the caller graph for this function:

◆ withDefinition()

assAnswerMatchingPair::withDefinition ( assAnswerMatchingDefinition  $definition)

Definition at line 58 of file class.assAnswerMatchingPair.php.

References $definition.

58  : self
59  {
60  $clone = clone $this;
61  $clone->definition = $definition;
62  return $clone;
63  }
assAnswerMatchingDefinition $definition

◆ withPoints()

assAnswerMatchingPair::withPoints ( float  $points)

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

References $points.

69  : self
70  {
71  $clone = clone $this;
72  $clone->points = $points;
73  return $clone;
74  }

◆ withTerm()

assAnswerMatchingPair::withTerm ( assAnswerMatchingTerm  $term)

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

References $term.

47  : self
48  {
49  $clone = clone $this;
50  $clone->term = $term;
51  return $clone;
52  }

Field Documentation

◆ $definition

assAnswerMatchingDefinition assAnswerMatchingPair::$definition
protected

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

Referenced by __construct(), getDefinition(), and withDefinition().

◆ $points

float assAnswerMatchingPair::$points
protected

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

Referenced by __construct(), getPoints(), and withPoints().

◆ $term

assAnswerMatchingTerm assAnswerMatchingPair::$term
protected

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

Referenced by __construct(), getTerm(), and withTerm().


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