ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
assAnswerMatchingTerm Class Reference

Class for matching question terms. More...

+ Inheritance diagram for assAnswerMatchingTerm:
+ Collaboration diagram for assAnswerMatchingTerm:

Public Member Functions

 __construct (string $text="", string $picture="", int $identifier=0)
 
 getText ()
 
 withText (string $text)
 
 getPicture ()
 
 withPicture (string $picture)
 
 getIdentifier ()
 
 withIdentifier (int $identifier)
 

Protected Member Functions

 createIdentifier ()
 

Protected Attributes

string $text
 
string $picture
 
int $identifier
 

Detailed Description

Class for matching question terms.

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.assAnswerMatchingTerm.php.

Constructor & Destructor Documentation

◆ __construct()

assAnswerMatchingTerm::__construct ( string  $text = "",
string  $picture = "",
int  $identifier = 0 
)

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

34 {
35 $this->text = $text;
36 $this->picture = $picture;
37
38 $this->identifier = ($identifier !== 0) ? $identifier : $this->createIdentifier();
39 }

References $identifier, $picture, $text, and createIdentifier().

+ Here is the call graph for this function:

Member Function Documentation

◆ createIdentifier()

assAnswerMatchingTerm::createIdentifier ( )
protected

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

41 : int
42 {
43 $id = random_int(1, 100000);
44 return $id;
45 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ getIdentifier()

assAnswerMatchingTerm::getIdentifier ( )

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

69 : int
70 {
71 return $this->identifier;
72 }

References $identifier.

Referenced by assMatchingQuestionGUI\buildTermHtml(), and assMatchingQuestionGUI\populateDefinition().

+ Here is the caller graph for this function:

◆ getPicture()

assAnswerMatchingTerm::getPicture ( )

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

58 : string
59 {
60 return $this->picture;
61 }

References $picture.

Referenced by assMatchingQuestionGUI\buildTermHtml(), and assMatchingQuestionGUI\populateDefinition().

+ Here is the caller graph for this function:

◆ getText()

assAnswerMatchingTerm::getText ( )

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

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

References $text.

Referenced by assMatchingQuestionGUI\buildTermHtml(), and assMatchingQuestionGUI\populateDefinition().

+ Here is the caller graph for this function:

◆ withIdentifier()

assAnswerMatchingTerm::withIdentifier ( int  $identifier)

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

73 : self
74 {
75 $clone = clone $this;
76 $clone->identifier = $identifier;
77 return $clone;
78 }

References $identifier.

◆ withPicture()

assAnswerMatchingTerm::withPicture ( string  $picture)

Definition at line 62 of file class.assAnswerMatchingTerm.php.

62 : self
63 {
64 $clone = clone $this;
65 $clone->picture = $picture;
66 return $clone;
67 }

References $picture.

◆ withText()

assAnswerMatchingTerm::withText ( string  $text)

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

51 : self
52 {
53 $clone = clone $this;
54 $clone->text = $text;
55 return $clone;
56 }

References $text.

Field Documentation

◆ $identifier

int assAnswerMatchingTerm::$identifier
protected

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

Referenced by __construct(), getIdentifier(), and withIdentifier().

◆ $picture

string assAnswerMatchingTerm::$picture
protected

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

Referenced by __construct(), getPicture(), and withPicture().

◆ $text

string assAnswerMatchingTerm::$text
protected

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

Referenced by __construct(), getText(), and withText().


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