ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAssKprimChoiceAnswer Class Reference
+ Collaboration diagram for ilAssKprimChoiceAnswer:

Public Member Functions

 setPosition ($position)
 
 getPosition ()
 
 setAnswertext ($answertext)
 
 getAnswertext ()
 
 setImageFile (?string $imageFile)
 
 getImageFile ()
 
 setImage (?string $image)
 
 getImage ()
 
 setImageFsDir ($imageFsDir)
 
 getImageFsDir ()
 
 setImageWebDir ($imageWebDir)
 
 getImageWebDir ()
 
 setThumbPrefix ($thumbPrefix)
 
 getThumbPrefix ()
 
 setCorrectness ($correctness)
 
 getCorrectness ()
 
 getImageFsPath ()
 
 getThumbFsPath ()
 
 getImageWebPath ()
 
 getThumbWebPath ()
 

Private Attributes

 $position
 
 $answertext
 
 $imageFile
 
 $imageFsDir
 
 $imageWebDir
 
 $thumbPrefix
 
 $correctness
 

Detailed Description

Definition at line 25 of file class.ilAssKprimChoiceAnswer.php.

Member Function Documentation

◆ getAnswertext()

ilAssKprimChoiceAnswer::getAnswertext ( )

Definition at line 56 of file class.ilAssKprimChoiceAnswer.php.

References $answertext.

Referenced by assKprimChoice\addAnswer(), and assKprimChoice\getCorrectSolutionForTextOutput().

+ Here is the caller graph for this function:

◆ getCorrectness()

ilAssKprimChoiceAnswer::getCorrectness ( )

Definition at line 124 of file class.ilAssKprimChoiceAnswer.php.

References $correctness.

Referenced by assKprimChoice\getCorrectSolutionForTextOutput().

+ Here is the caller graph for this function:

◆ getImage()

ilAssKprimChoiceAnswer::getImage ( )

Definition at line 77 of file class.ilAssKprimChoiceAnswer.php.

77 : ?string
78 {
79 return $this->getImageFile();
80 }

References getImageFile().

+ Here is the call graph for this function:

◆ getImageFile()

ilAssKprimChoiceAnswer::getImageFile ( )

Definition at line 66 of file class.ilAssKprimChoiceAnswer.php.

66 : ?string
67 {
68 return $this->imageFile;
69 }

References $imageFile.

Referenced by getImage(), getImageFsPath(), getImageWebPath(), getThumbFsPath(), and getThumbWebPath().

+ Here is the caller graph for this function:

◆ getImageFsDir()

ilAssKprimChoiceAnswer::getImageFsDir ( )

Definition at line 88 of file class.ilAssKprimChoiceAnswer.php.

References $imageFsDir.

Referenced by getImageFsPath(), and getThumbFsPath().

+ Here is the caller graph for this function:

◆ getImageFsPath()

ilAssKprimChoiceAnswer::getImageFsPath ( )

Definition at line 129 of file class.ilAssKprimChoiceAnswer.php.

129 : string
130 {
131 return $this->getImageFsDir() . $this->getImageFile();
132 }

References getImageFile(), and getImageFsDir().

Referenced by assKprimChoice\handleFileUpload().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getImageWebDir()

ilAssKprimChoiceAnswer::getImageWebDir ( )

Definition at line 98 of file class.ilAssKprimChoiceAnswer.php.

References $imageWebDir.

Referenced by getImageWebPath(), and getThumbWebPath().

+ Here is the caller graph for this function:

◆ getImageWebPath()

ilAssKprimChoiceAnswer::getImageWebPath ( )

Definition at line 139 of file class.ilAssKprimChoiceAnswer.php.

139 : string
140 {
141 return $this->getImageWebDir() . $this->getImageFile();
142 }

References getImageFile(), and getImageWebDir().

+ Here is the call graph for this function:

◆ getPosition()

ilAssKprimChoiceAnswer::getPosition ( )

Definition at line 46 of file class.ilAssKprimChoiceAnswer.php.

References $position.

◆ getThumbFsPath()

ilAssKprimChoiceAnswer::getThumbFsPath ( )

Definition at line 134 of file class.ilAssKprimChoiceAnswer.php.

134 : string
135 {
136 return $this->getImageFsDir() . $this->getThumbPrefix() . $this->getImageFile();
137 }

References getImageFile(), getImageFsDir(), and getThumbPrefix().

+ Here is the call graph for this function:

◆ getThumbPrefix()

ilAssKprimChoiceAnswer::getThumbPrefix ( )
Returns
mixed

Definition at line 114 of file class.ilAssKprimChoiceAnswer.php.

References $thumbPrefix.

Referenced by getThumbFsPath(), and getThumbWebPath().

+ Here is the caller graph for this function:

◆ getThumbWebPath()

ilAssKprimChoiceAnswer::getThumbWebPath ( )

Definition at line 144 of file class.ilAssKprimChoiceAnswer.php.

144 : string
145 {
146 return $this->getImageWebDir() . $this->getThumbPrefix() . $this->getImageFile();
147 }

References getImageFile(), getImageWebDir(), and getThumbPrefix().

+ Here is the call graph for this function:

◆ setAnswertext()

ilAssKprimChoiceAnswer::setAnswertext (   $answertext)

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

51 : void
52 {
53 $this->answertext = $answertext;
54 }

References $answertext.

Referenced by assKprimChoice\addAnswer().

+ Here is the caller graph for this function:

◆ setCorrectness()

ilAssKprimChoiceAnswer::setCorrectness (   $correctness)

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

119 : void
120 {
121 $this->correctness = $correctness;
122 }

References $correctness.

◆ setImage()

ilAssKprimChoiceAnswer::setImage ( ?string  $image)

Definition at line 72 of file class.ilAssKprimChoiceAnswer.php.

72 : void
73 {
74 $this->setImageFile($image);
75 }

References setImageFile().

+ Here is the call graph for this function:

◆ setImageFile()

ilAssKprimChoiceAnswer::setImageFile ( ?string  $imageFile)

Definition at line 61 of file class.ilAssKprimChoiceAnswer.php.

61 : void
62 {
63 $this->imageFile = $imageFile;
64 }

References $imageFile.

Referenced by assKprimChoice\handleFileUpload(), and setImage().

+ Here is the caller graph for this function:

◆ setImageFsDir()

ilAssKprimChoiceAnswer::setImageFsDir (   $imageFsDir)

Definition at line 83 of file class.ilAssKprimChoiceAnswer.php.

83 : void
84 {
85 $this->imageFsDir = $imageFsDir;
86 }

References $imageFsDir.

Referenced by assKprimChoice\handleFileUpload().

+ Here is the caller graph for this function:

◆ setImageWebDir()

ilAssKprimChoiceAnswer::setImageWebDir (   $imageWebDir)

Definition at line 93 of file class.ilAssKprimChoiceAnswer.php.

93 : void
94 {
95 $this->imageWebDir = $imageWebDir;
96 }

References $imageWebDir.

◆ setPosition()

ilAssKprimChoiceAnswer::setPosition (   $position)

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

41 : void
42 {
43 $this->position = $position;
44 }

References $position.

◆ setThumbPrefix()

ilAssKprimChoiceAnswer::setThumbPrefix (   $thumbPrefix)
Parameters
mixed$thumbPrefix

Definition at line 106 of file class.ilAssKprimChoiceAnswer.php.

106 : void
107 {
108 $this->thumbPrefix = $thumbPrefix;
109 }

References $thumbPrefix.

Field Documentation

◆ $answertext

ilAssKprimChoiceAnswer::$answertext
private

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

Referenced by getAnswertext(), and setAnswertext().

◆ $correctness

ilAssKprimChoiceAnswer::$correctness
private

Definition at line 39 of file class.ilAssKprimChoiceAnswer.php.

Referenced by getCorrectness(), and setCorrectness().

◆ $imageFile

ilAssKprimChoiceAnswer::$imageFile
private

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

Referenced by getImageFile(), and setImageFile().

◆ $imageFsDir

ilAssKprimChoiceAnswer::$imageFsDir
private

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

Referenced by getImageFsDir(), and setImageFsDir().

◆ $imageWebDir

ilAssKprimChoiceAnswer::$imageWebDir
private

Definition at line 35 of file class.ilAssKprimChoiceAnswer.php.

Referenced by getImageWebDir(), and setImageWebDir().

◆ $position

ilAssKprimChoiceAnswer::$position
private

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

Referenced by getPosition(), and setPosition().

◆ $thumbPrefix

ilAssKprimChoiceAnswer::$thumbPrefix
private

Definition at line 37 of file class.ilAssKprimChoiceAnswer.php.

Referenced by getThumbPrefix(), and setThumbPrefix().


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