Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
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. | |
Static Public Member Functions | |
static | instance_from_object (stdClass $data) |
Factory method making the instance from data in the passed object. | |
static | instance_from_text ($text) |
Factory method making the instance from data in the passed text. | |
Public Attributes | |
bool | $addselfassessment |
add self-assessments | |
bool | $assesswosubmission |
participants can assess without having submitted anything | |
bool | $enablescheduled |
scheduled allocation status | |
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 { | |
const | NUMPER_SUBMISSION = 1 |
aim to a number of reviews per one submission { | |
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 {@selfinstance_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 {