Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Data object defining the settings structure for the random allocator. More...
Public Member Functions | |
export_text () | |
Exports the instance data as a text for persistant storage. More... | |
Static Public Member Functions | |
static | instance_from_object (stdClass $data) |
Factory method making the instance from data in the passed object. More... | |
static | instance_from_text ($text) |
Factory method making the instance from data in the passed text. More... | |
Public Attributes | |
bool | $addselfassessment |
add self-assessments | |
bool | $assesswosubmission |
participants can assess without having submitted anything | |
bool | $excludesamegroup |
prevent reviews by peers from the same group | |
int | $numofreviews |
number of reviews | |
int | $numper |
either self::NUMPER_SUBMISSION or self::NUMPER_REVIEWER | |
bool | $removecurrent |
remove current allocations | |
const | NUMPER_REVIEWER = 2 |
aim to a number of reviews per one reviewer { More... | |
const | NUMPER_SUBMISSION = 1 |
aim to a number of reviews per one submission { More... | |
Protected Member Functions | |
__construct () | |
Use the factory method self::instance_from_object(). | |
Data object defining the settings structure for the random allocator.
workshop_random_allocator_setting::export_text | ( | ) |
Exports the instance data as a text for persistant storage.
The returned data can be later used by {@self::instance_from_text()} factory method to restore the instance data. The current implementation uses JSON export format.
string | JSON representation of our public properties |
|
static |
Factory method making the instance from data in the passed object.
stdClass | $data | an object holding the values for our public properties |
workshop_random_allocator_setting |
|
static |
Factory method making the instance from data in the passed text.
string | $text | as returned by self::export_text() |
workshop_random_allocator_setting |
const workshop_random_allocator_setting::NUMPER_REVIEWER = 2 |
aim to a number of reviews per one reviewer {
const workshop_random_allocator_setting::NUMPER_SUBMISSION = 1 |
aim to a number of reviews per one submission {