ILIAS  trunk Revision v5.2.0beta1-34132-g2d4d73d4a0
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 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.

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

56  {
57  $this->setShortName($short_name);
60  $this->setPassed($passed);
61  }
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 67 of file class.assMark.php.

References ILIAS\Repository\int().

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  }
+ Here is the call graph for this function:

◆ getMinimumLevel()

ASS_Mark::getMinimumLevel ( )

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

References $minimum_level.

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

◆ getOfficialName()

ASS_Mark::getOfficialName ( )

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

References $official_name.

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

◆ getPassed()

ASS_Mark::getPassed ( )

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

References $passed.

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

◆ getShortName()

ASS_Mark::getShortName ( )

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

References $short_name.

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

◆ setMinimumLevel()

ASS_Mark::setMinimumLevel (   $minimum_level)

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

References $minimum_level.

Referenced by __construct().

110  : void
111  {
112  $minimum_level = (float) $minimum_level;
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  }
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 105 of file class.assMark.php.

References $official_name.

Referenced by __construct().

105  : void
106  {
107  $this->official_name = $official_name;
108  }
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 100 of file class.assMark.php.

References $passed.

Referenced by __construct().

100  : void
101  {
102  $this->passed = $passed;
103  }
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 95 of file class.assMark.php.

References $short_name.

Referenced by __construct().

95  : void
96  {
97  $this->short_name = $short_name;
98  }
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 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: