ILIAS  release_8 Revision v8.24
ASS_Mark Class Reference

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

+ Collaboration diagram for ASS_Mark:

Public Member Functions

 __construct (string $short_name="", string $official_name="", float $minimum_level=0, int $passed=0)
 
 __unserialize (array $data)
 Stephan Kergomard, 2023-11-08: We need an explicit __unserialize function here because of changes to the corresponding classes with ILIAS 8. More...
 
 getShortName ()
 
 getPassed ()
 
 getOfficialName ()
 
 getMinimumLevel ()
 
 setShortName (string $short_name="")
 
 setPassed ($passed=0)
 
 setOfficialName (string $official_name="")
 
 setMinimumLevel ($minimum_level)
 

Data Fields

string $short_name
 The short name of the mark, e.g. More...
 
string $official_name
 The official name of the mark, e.g. More...
 
float $minimum_level = 0
 The minimum percentage level reaching the mark. More...
 
int $passed
 The passed status of the mark. More...
 

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 A class defining marks for assessment test objects

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
Version
$Id$

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

Constructor & Destructor Documentation

◆ __construct()

ASS_Mark::__construct ( string  $short_name = "",
string  $official_name = "",
float  $minimum_level = 0,
int  $passed = 0 
)

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

56 {
60 $this->setPassed($passed);
61 }
setMinimumLevel($minimum_level)
setOfficialName(string $official_name="")
setShortName(string $short_name="")
setPassed($passed=0)
float $minimum_level
The minimum percentage level reaching the mark.
string $short_name
The short name of the mark, e.g.
string $official_name
The official name of the mark, e.g.
int $passed
The passed status of the mark.

References setMinimumLevel(), setOfficialName(), setPassed(), and setShortName().

+ Here is the call graph for this function:

Member Function Documentation

◆ __unserialize()

ASS_Mark::__unserialize ( array  $data)

Stephan Kergomard, 2023-11-08: We need an explicit __unserialize function here because of changes to the corresponding classes with ILIAS 8.

Definition at line 67 of file class.assMark.php.

67 : void
68 {
69 $this->short_name = $data['short_name'];
70 $this->official_name = $data['short_name'];
71 $this->minimum_level = (float) $data['minimum_level'];
72 $this->passed = (int) $data['passed'];
73 }

References $data, and ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getMinimumLevel()

ASS_Mark::getMinimumLevel ( )

Definition at line 90 of file class.assMark.php.

90 : float
91 {
93 }

References $minimum_level.

◆ getOfficialName()

ASS_Mark::getOfficialName ( )

Definition at line 85 of file class.assMark.php.

85 : string
86 {
88 }

References $official_name.

◆ getPassed()

ASS_Mark::getPassed ( )

Definition at line 80 of file class.assMark.php.

80 : int
81 {
82 return $this->passed;
83 }

References $passed.

◆ getShortName()

ASS_Mark::getShortName ( )

Definition at line 75 of file class.assMark.php.

75 : string
76 {
77 return $this->short_name;
78 }

References $short_name.

◆ setMinimumLevel()

ASS_Mark::setMinimumLevel (   $minimum_level)

Definition at line 110 of file class.assMark.php.

110 : void
111 {
113
114 if (($minimum_level >= 0) && ($minimum_level <= 100)) {
115 $this->minimum_level = $minimum_level;
116 } else {
117 throw new Exception('Markstep: minimum level must be between 0 and 100');
118 }
119 }

References $minimum_level.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setOfficialName()

ASS_Mark::setOfficialName ( string  $official_name = "")

Definition at line 105 of file class.assMark.php.

105 : void
106 {
107 $this->official_name = $official_name;
108 }

References $official_name.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setPassed()

ASS_Mark::setPassed (   $passed = 0)

Definition at line 100 of file class.assMark.php.

100 : void
101 {
102 $this->passed = $passed;
103 }

References $passed.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setShortName()

ASS_Mark::setShortName ( string  $short_name = "")

Definition at line 95 of file class.assMark.php.

95 : void
96 {
97 $this->short_name = $short_name;
98 }

References $short_name.

Referenced by __construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $minimum_level

float ASS_Mark::$minimum_level = 0

The minimum percentage level reaching the mark.

A float value between 0 and 100

Definition at line 44 of file class.assMark.php.

Referenced by getMinimumLevel(), and setMinimumLevel().

◆ $official_name

string ASS_Mark::$official_name

The official name of the mark, e.g.

failed, passed, befriedigend

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

Referenced by getOfficialName(), and setOfficialName().

◆ $passed

int ASS_Mark::$passed

The passed status of the mark.

0 indicates that the mark is failed, 1 indicates that the mark is passed

Definition at line 49 of file class.assMark.php.

Referenced by getPassed(), and setPassed().

◆ $short_name

string ASS_Mark::$short_name

The short name of the mark, e.g.

F or 3 or 1,3

Definition at line 34 of file class.assMark.php.

Referenced by getShortName(), and setShortName().


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