Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Public Member Functions | |
create_instance ($record=null, array $options=null) | |
Create a test repository instance. More... | |
create_type ($record=null, array $options=null) | |
Create the type of repository. More... | |
get_typename () | |
Returns repository type name. More... | |
reset () | |
To be called from data reset code only, do not use in tests. More... | |
Protected Member Functions | |
prepare_record (array $record) | |
Fill in record defaults. More... | |
prepare_type_record (array $record) | |
Fill in type record defaults. More... | |
Protected Attributes | |
testing_data_generator | $datagenerator |
int | $instancecount = 0 |
Number of instances created. | |
testing_repository_generator::create_instance | ( | $record = null , |
|
array | $options = null |
||
) |
Create a test repository instance.
array | stdClass | $record | |
array | $options |
stdClass | repository instance record |
testing_repository_generator::create_type | ( | $record = null , |
|
array | $options = null |
||
) |
Create the type of repository.
stdClass | array | $record | data to use to set up the type |
array | $options | options for the set up of the type |
stdClass | repository type record |
testing_repository_generator::get_typename | ( | ) |
Returns repository type name.
string | name of the type of repository |
coding_exception | if class invalid |
|
protected |
Fill in record defaults.
array | $record |
array |
Reimplemented in repository_webdav_generator, repository_flickr_public_generator, repository_filesystem_generator, and repository_equella_generator.
|
protected |
Fill in type record defaults.
array | $record |
array |
Reimplemented in repository_youtube_generator, repository_s3_generator, repository_recent_generator, repository_picasa_generator, repository_merlot_generator, repository_googledocs_generator, repository_flickr_public_generator, repository_flickr_generator, repository_dropbox_generator, and repository_boxnet_generator.
testing_repository_generator::reset | ( | ) |
To be called from data reset code only, do not use in tests.
void |
Reimplemented from component_generator_base.