ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ASS_Mark Class Reference

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

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 31 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 53 of file class.assMark.php.

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

58  {
59  $this->setShortName($short_name);
62  $this->setPassed($passed);
63  }
setOfficialName(string $official_name="")
setPassed($passed=0)
float $minimum_level
The minimum percentage level reaching the mark.
setShortName(string $short_name="")
string $official_name
The official name of the mark, e.g.
int $passed
The passed status of the mark.
setMinimumLevel($minimum_level)
string $short_name
The short name of the mark, e.g.
+ 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 69 of file class.assMark.php.

References ILIAS\Repository\int().

69  : void
70  {
71  $this->short_name = $data['short_name'];
72  $this->official_name = $data['short_name'];
73  $this->minimum_level = (float) $data['minimum_level'];
74  $this->passed = (int) $data['passed'];
75  }
+ Here is the call graph for this function:

◆ getMinimumLevel()

ASS_Mark::getMinimumLevel ( )

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

References $minimum_level.

92  : float
93  {
94  return $this->minimum_level;
95  }
float $minimum_level
The minimum percentage level reaching the mark.

◆ getOfficialName()

ASS_Mark::getOfficialName ( )

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

References $official_name.

87  : string
88  {
89  return $this->official_name;
90  }
string $official_name
The official name of the mark, e.g.

◆ getPassed()

ASS_Mark::getPassed ( )

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

References $passed.

82  : int
83  {
84  return $this->passed;
85  }
int $passed
The passed status of the mark.

◆ getShortName()

ASS_Mark::getShortName ( )

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

References $short_name.

77  : string
78  {
79  return $this->short_name;
80  }
string $short_name
The short name of the mark, e.g.

◆ setMinimumLevel()

ASS_Mark::setMinimumLevel (   $minimum_level)

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

References $minimum_level.

Referenced by __construct().

112  : void
113  {
114  $minimum_level = (float) $minimum_level;
115 
116  if (($minimum_level >= 0) && ($minimum_level <= 100)) {
117  $this->minimum_level = $minimum_level;
118  } else {
119  throw new Exception('Markstep: minimum level must be between 0 and 100');
120  }
121  }
float $minimum_level
The minimum percentage level reaching the mark.
+ Here is the caller graph for this function:

◆ setOfficialName()

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

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

References $official_name.

Referenced by __construct().

107  : void
108  {
109  $this->official_name = $official_name;
110  }
string $official_name
The official name of the mark, e.g.
+ Here is the caller graph for this function:

◆ setPassed()

ASS_Mark::setPassed (   $passed = 0)

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

References $passed.

Referenced by __construct().

102  : void
103  {
104  $this->passed = $passed;
105  }
int $passed
The passed status of the mark.
+ Here is the caller graph for this function:

◆ setShortName()

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

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

References $short_name.

Referenced by __construct().

97  : void
98  {
99  $this->short_name = $short_name;
100  }
string $short_name
The short name of the mark, e.g.
+ 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 46 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 41 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 51 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 36 of file class.assMark.php.

Referenced by getShortName(), and setShortName().


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