|
| set_user (?stdClass $user=null) |
| Set the current user during data generation. More...
|
|
|
int | $categorycount = 0 |
| Number of created categories.
|
|
testing_data_generator | $datagenerator |
|
int | $fieldcount = 0 |
| Number of created fields.
|
|
◆ add_instance_data()
core_customfield_generator::add_instance_data |
( |
field_controller |
$field, |
|
|
int |
$instanceid, |
|
|
|
$value |
|
) |
| |
Adds instance data for one field.
- Parameters
-
field_controller | $field | |
int | $instanceid | |
mixed | $value | |
- Return values
-
◆ create_category()
core_customfield_generator::create_category |
( |
|
$record = null | ) |
|
Create a new category.
- Parameters
-
- Return values
-
◆ create_field()
core_customfield_generator::create_field |
( |
|
$record | ) |
|
Create a new field.
- Parameters
-
- Return values
-
◆ reset()
component_generator_base::reset |
( |
| ) |
|
|
inherited |
To be called from data reset code only, do not use in tests.
- Return values
-
Reimplemented in tool_dataprivacy_generator, core_competency_generator, testing_block_generator, testing_module_generator, testing_repository_generator, mod_book_generator, mod_chat_generator, mod_data_generator, mod_forum_generator, mod_glossary_generator, mod_lesson_generator, mod_survey_generator, mod_wiki_generator, core_notes_generator, and core_question_generator.
◆ set_user()
component_generator_base::set_user |
( |
?stdClass |
$user = null | ) |
|
|
protectedinherited |
Set the current user during data generation.
This should be avoided wherever possible, but in some situations underlying code will insert data as the current user.
- Parameters
-
The documentation for this class was generated from the following file:
- customfield/tests/generator/lib.php