Moodle  2.2.1
http://www.collinsharper.com
question_cbm Class Reference

Static Public Member Functions

static default_certainty ()
static adjust_fraction ($fraction, $certainty)
static get_string ($certainty)
static summary_with_certainty ($summary, $certainty)

Data Fields

const LOW = 1
const MED = 2
const HIGH = 3

Static Public Attributes

static $certainties = array(self::LOW, self::MED, self::HIGH)

Static Protected Attributes

static $factor
static $offset

Detailed Description

This helper class contains the constants and methods required for manipulating scores for certainly based marking.

Definition at line 617 of file behaviourbase.php.


Member Function Documentation

static adjust_fraction ( fraction,
certainty 
) [static]

Given a fraction, and a certainly, compute the adjusted fraction.

Parameters:
number$fractionthe raw fraction for this question.
int$certaintyone of the certainly level constants.
Returns:
number the adjusted fraction taking the certainly into account.

Definition at line 654 of file behaviourbase.php.

Here is the caller graph for this function:

static default_certainty ( ) [static]

#@-

Returns:
int the default certaintly level that should be assuemd if the student does not choose one.

Definition at line 644 of file behaviourbase.php.

Here is the caller graph for this function:

static get_string ( certainty) [static]
Parameters:
int$certaintyone of the LOW/MED/HIGH constants.
Returns:
string a textual desciption of this certainly.

Definition at line 662 of file behaviourbase.php.

Here is the caller graph for this function:

static summary_with_certainty ( summary,
certainty 
) [static]

Definition at line 666 of file behaviourbase.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$certainties = array(self::LOW, self::MED, self::HIGH) [static]

Definition at line 625 of file behaviourbase.php.

$factor [static, protected]
Initial value:
 array(
        self::LOW => 0.333333333333333,
        self::MED => 1.333333333333333,
        self::HIGH => 3,
    )

Definition at line 628 of file behaviourbase.php.

$offset [static, protected]
Initial value:
 array(
        self::LOW => 0,
        self::MED => -0.666666666666667,
        self::HIGH => -2,
    )

Definition at line 633 of file behaviourbase.php.

const HIGH = 3

Definition at line 621 of file behaviourbase.php.

const LOW = 1

Definition at line 619 of file behaviourbase.php.

const MED = 2

Definition at line 620 of file behaviourbase.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations