ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
assAnswerMatchingTerm Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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.

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

34  {
35  $this->text = $text;
36  $this->picture = $picture;
37 
38  $this->identifier = ($identifier !==0) ? $identifier : $this->createIdentifier();
39  }
+ Here is the call graph for this function:

Member Function Documentation

◆ createIdentifier()

assAnswerMatchingTerm::createIdentifier ( )
protected

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

References $id.

Referenced by __construct().

41  : int
42  {
43  $id = random_int(1, 100000);
44  return $id;
45  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
+ Here is the caller graph for this function:

◆ getIdentifier()

assAnswerMatchingTerm::getIdentifier ( )

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

References $identifier.

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

◆ getPicture()

assAnswerMatchingTerm::getPicture ( )

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

References $picture.

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

◆ getText()

assAnswerMatchingTerm::getText ( )

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

References $text.

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

◆ withIdentifier()

assAnswerMatchingTerm::withIdentifier ( int  $identifier)

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

References $identifier.

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

◆ withPicture()

assAnswerMatchingTerm::withPicture ( string  $picture)

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

References $picture.

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

◆ withText()

assAnswerMatchingTerm::withText ( string  $text)

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

References $text.

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

Field Documentation

◆ $identifier

int assAnswerMatchingTerm::$identifier
protected

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

Referenced by 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: