A class defining marks for assessment test objects. More...
Public Member Functions | |
ASS_Mark ($short_name="", $official_name="", $minimum_level=0, $passed=0) | |
ASS_Mark constructor. | |
getShortName () | |
Returns the short name of the mark. | |
getPassed () | |
Returns passed status of the mark. | |
getOfficialName () | |
Returns the official name of the mark. | |
getMinimumLevel () | |
Returns the minimum level reaching the mark. | |
setShortName ($short_name="") | |
Sets the short name of the mark. | |
setPassed ($passed=0) | |
Sets the passed status the mark. | |
setOfficialName ($official_name="") | |
Sets the official name of the mark. | |
setMinimumLevel ($minimum_level=0) | |
Sets the minimum level reaching the mark. | |
Data Fields | |
$short_name | |
$official_name | |
$minimum_level | |
$passed |
A class defining marks for assessment test objects.
A class defining marks for assessment test objects
class.assMark.php Assessment
Definition at line 36 of file class.assMark.php.
ASS_Mark::ASS_Mark | ( | $ | short_name = "" , |
|
$ | official_name = "" , |
|||
$ | minimum_level = 0 , |
|||
$ | passed = 0 | |||
) |
ASS_Mark constructor.
The constructor takes possible arguments an creates an instance of the ASS_Mark object.
string | $short_name The short name of the mark | |
string | $official_name The official name of the mark | |
double | $minimum_level The minimum percentage level reaching the mark public |
Definition at line 83 of file class.assMark.php.
References $minimum_level, $official_name, $passed, and $short_name.
{ $this->short_name = $short_name; $this->official_name = $official_name; $this->minimum_level = $minimum_level; $this->passed = $passed; }
ASS_Mark::getMinimumLevel | ( | ) |
Returns the minimum level reaching the mark.
Returns the minimum level reaching the mark
Definition at line 144 of file class.assMark.php.
{
return $this->minimum_level;
}
ASS_Mark::getOfficialName | ( | ) |
Returns the official name of the mark.
Returns the official name of the mark
Definition at line 131 of file class.assMark.php.
{
return $this->official_name;
}
ASS_Mark::getPassed | ( | ) |
Returns passed status of the mark.
Returns the passed status of the mark
Definition at line 118 of file class.assMark.php.
{
return $this->passed;
}
ASS_Mark::getShortName | ( | ) |
Returns the short name of the mark.
Returns the short name of the mark
Definition at line 105 of file class.assMark.php.
{
return $this->short_name;
}
ASS_Mark::setMinimumLevel | ( | $ | minimum_level = 0 |
) |
Sets the minimum level reaching the mark.
Sets the minimum level reaching the mark
string | $minimum_level The minimum level reaching the mark public |
Definition at line 196 of file class.assMark.php.
References $minimum_level.
{ if (($minmum_level >= 0) and ($minimum_level <= 100)) $this->minimum_level = $minimum_level; }
ASS_Mark::setOfficialName | ( | $ | official_name = "" |
) |
Sets the official name of the mark.
Sets the official name of the mark
string | $official_name The official name of the mark public |
Definition at line 183 of file class.assMark.php.
References $official_name.
{ $this->official_name = $official_name; }
ASS_Mark::setPassed | ( | $ | passed = 0 |
) |
Sets the passed status the mark.
Sets the passed status of the mark
integer | $passed The passed status of the mark public |
Definition at line 170 of file class.assMark.php.
References $passed.
{ $this->passed = $passed; }
ASS_Mark::setShortName | ( | $ | short_name = "" |
) |
Sets the short name of the mark.
Sets the short name of the mark
string | $short_name The short name of the mark public |
Definition at line 157 of file class.assMark.php.
References $short_name.
{ $this->short_name = $short_name; }
ASS_Mark::$minimum_level |
Definition at line 62 of file class.assMark.php.
Referenced by ASS_Mark(), and setMinimumLevel().
ASS_Mark::$official_name |
Definition at line 53 of file class.assMark.php.
Referenced by ASS_Mark(), and setOfficialName().
ASS_Mark::$passed |
Definition at line 71 of file class.assMark.php.
Referenced by ASS_Mark(), and setPassed().
ASS_Mark::$short_name |
Definition at line 44 of file class.assMark.php.
Referenced by ASS_Mark(), and setShortName().