Public Member Functions | Data Fields

ASS_Mark Class Reference

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.
 get_short_name ()
 Returns the short name of the mark.
 get_passed ()
 Returns passed status of the mark.
 get_official_name ()
 Returns the official name of the mark.
 get_minimum_level ()
 Returns the minimum level reaching the mark.
 set_short_name ($short_name="")
 Sets the short name of the mark.
 set_passed ($passed=0)
 Sets the passed status the mark.
 set_official_name ($official_name="")
 Sets the official name of the mark.
 set_minimum_level ($minimum_level=0)
 Sets the minimum level reaching the mark.

Data Fields

 $short_name
 $official_name
 $minimum_level
 $passed

Detailed Description

A class defining marks for assessment test objects.

A class defining marks for assessment test objects

Author:
Helmut Schottmüller <hschottm@tzi.de>
Version:
Id:
class.assMark.php 4949 2004-09-14 19:13:58Z hschottm

class.assMark.php Assessment

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


Member Function Documentation

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.

Parameters:
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 82 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::get_minimum_level (  ) 

Returns the minimum level reaching the mark.

Returns the minimum level reaching the mark

Returns:
double The minimum level reaching the mark public
See also:
$minimum_level

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

                               {
    return $this->minimum_level;
  }

ASS_Mark::get_official_name (  ) 

Returns the official name of the mark.

Returns the official name of the mark

Returns:
string The official name of the mark public
See also:
$official_name

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

                               {
    return $this->official_name;
  }

ASS_Mark::get_passed (  ) 

Returns passed status of the mark.

Returns the passed status of the mark

Returns:
string The passed status of the mark public
See also:
$passed

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

                        {
    return $this->passed;
  }

ASS_Mark::get_short_name (  ) 

Returns the short name of the mark.

Returns the short name of the mark

Returns:
string The short name of the mark public
See also:
$short_name

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

                            {
    return $this->short_name;
  }

ASS_Mark::set_minimum_level ( minimum_level = 0  ) 

Sets the minimum level reaching the mark.

Sets the minimum level reaching the mark

Parameters:
string $minimum_level The minimum level reaching the mark public
See also:
$minimum_level

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

References $minimum_level.

                                                 {
    if (($minmum_level >= 0) and ($minimum_level <= 100))
      $this->minimum_level = $minimum_level;
  }

ASS_Mark::set_official_name ( official_name = ""  ) 

Sets the official name of the mark.

Sets the official name of the mark

Parameters:
string $official_name The official name of the mark public
See also:
$official_name

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

References $official_name.

                                                  {
    $this->official_name = $official_name;
  }

ASS_Mark::set_passed ( passed = 0  ) 

Sets the passed status the mark.

Sets the passed status of the mark

Parameters:
integer $passed The passed status of the mark public
See also:
$passed

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

References $passed.

                                   {
    $this->passed = $passed;
  }

ASS_Mark::set_short_name ( short_name = ""  ) 

Sets the short name of the mark.

Sets the short name of the mark

Parameters:
string $short_name The short name of the mark public
See also:
$short_name

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

References $short_name.

                                            {
    $this->short_name = $short_name;
  }


Field Documentation

ASS_Mark::$minimum_level

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

Referenced by ASS_Mark(), and set_minimum_level().

ASS_Mark::$official_name

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

Referenced by ASS_Mark(), and set_official_name().

ASS_Mark::$passed

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

Referenced by ASS_Mark(), and set_passed().

ASS_Mark::$short_name

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

Referenced by ASS_Mark(), and set_short_name().


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