ILIAS
Release_4_0_x_branch Revision 61816
|
Class for numeric ranges of questions. More...
Public Member Functions | |
assNumericRange ($lowerlimit=0.0, $upperlimit=0.0, $points=0.0, $order=0) | |
assNumericRange constructor | |
getLowerLimit () | |
Get the lower limit. | |
getUpperLimit () | |
Get the upper limit. | |
getPoints () | |
Get the points. | |
getOrder () | |
Get the order of the range. | |
setLowerLimit ($limit) | |
Set the lower limit. | |
setUpperLimit ($limit) | |
Set the upper limit. | |
setPoints ($points) | |
Set the points. | |
setOrder ($order) | |
Set the order. | |
contains ($value) | |
Checks for a given value within the range. |
Data Fields | |
$lowerlimit | |
$upperlimit | |
$points | |
$order |
Class for numeric ranges of questions.
assNumericRange is a class for numeric ranges of questions
Definition at line 37 of file class.assNumericRange.php.
assNumericRange::assNumericRange | ( | $lowerlimit = 0.0 , |
|
$upperlimit = 0.0 , |
|||
$points = 0.0 , |
|||
$order = 0 |
|||
) |
assNumericRange constructor
The constructor takes possible arguments an creates an instance of the assNumericRange object.
double | $lowerlimit | The lower limit of the range |
double | $upperlimit | The upper limit of the range |
double | $points | The number of points given for the correct range |
integer | $order | A nonnegative value representing a possible display or sort order public |
Definition at line 87 of file class.assNumericRange.php.
References $lowerlimit, $order, $points, and $upperlimit.
assNumericRange::contains | ( | $value | ) |
Checks for a given value within the range.
Checks for a given value within the range
double | $value | The value to check |
Definition at line 216 of file class.assNumericRange.php.
References $result.
assNumericRange::getLowerLimit | ( | ) |
Get the lower limit.
Returns the lower limit of the range
Definition at line 109 of file class.assNumericRange.php.
References $lowerlimit.
assNumericRange::getOrder | ( | ) |
Get the order of the range.
Returns the order of the range
Definition at line 148 of file class.assNumericRange.php.
References $order.
assNumericRange::getPoints | ( | ) |
Get the points.
Returns the points of the range
Definition at line 135 of file class.assNumericRange.php.
References $points.
assNumericRange::getUpperLimit | ( | ) |
Get the upper limit.
Returns the upper limit of the range
Definition at line 122 of file class.assNumericRange.php.
References $upperlimit.
assNumericRange::setLowerLimit | ( | $limit | ) |
Set the lower limit.
Sets the lower limit of the range
double | $limit | The lower limit public |
Definition at line 161 of file class.assNumericRange.php.
assNumericRange::setOrder | ( | $order | ) |
Set the order.
Sets the order of the range
integer | $order | The order public |
Definition at line 200 of file class.assNumericRange.php.
References $order.
assNumericRange::setPoints | ( | $points | ) |
Set the points.
Sets the points of the range
double | $points | The points public |
Definition at line 187 of file class.assNumericRange.php.
References $points.
assNumericRange::setUpperLimit | ( | $limit | ) |
Set the upper limit.
Sets the upper limit of the range
double | $limit | The upper limit public |
Definition at line 174 of file class.assNumericRange.php.
assNumericRange::$lowerlimit |
Definition at line 46 of file class.assNumericRange.php.
Referenced by assNumericRange(), and getLowerLimit().
assNumericRange::$order |
Definition at line 73 of file class.assNumericRange.php.
Referenced by assNumericRange(), getOrder(), and setOrder().
assNumericRange::$points |
Definition at line 64 of file class.assNumericRange.php.
Referenced by assNumericRange(), getPoints(), and setPoints().
assNumericRange::$upperlimit |
Definition at line 55 of file class.assNumericRange.php.
Referenced by assNumericRange(), and getUpperLimit().