Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
behat_mod_data_generator Class Reference
Inheritance diagram for behat_mod_data_generator:

Public Member Functions

 process_entry (array $data)
 Add an entry.
 
 process_field (array $data)
 Add a field.
 
 process_template (array $data)
 Add a template.
 

Protected Member Functions

 get_creatable_entities ()
 Get a list of the entities that Behat can create using the generator step.
 
 get_data_generator ()
 Get the module data generator.
 
 get_database_id (string $idnumber)
 Get the database id using an activity idnumber.
 
 process_preset (array $data)
 Saves a preset.
 

Detailed Description

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_creatable_entities()

behat_mod_data_generator::get_creatable_entities ( )
protected

Get a list of the entities that Behat can create using the generator step.

Return values
array

◆ get_data_generator()

behat_mod_data_generator::get_data_generator ( )
protected

Get the module data generator.

Return values
mod_data_generatorDatabase data generator.

◆ get_database_id()

behat_mod_data_generator::get_database_id ( string $idnumber)
protected

Get the database id using an activity idnumber.

Parameters
string$idnumber
Return values
intThe database id

◆ process_entry()

behat_mod_data_generator::process_entry ( array $data)

Add an entry.

Parameters
array$dataEntry data.

◆ process_field()

behat_mod_data_generator::process_field ( array $data)

Add a field.

Parameters
array$dataField data.

◆ process_preset()

behat_mod_data_generator::process_preset ( array $data)
protected

Saves a preset.

Parameters
array$dataPreset data.

◆ process_template()

behat_mod_data_generator::process_template ( array $data)

Add a template.

Parameters
array$dataTemplate data.

The documentation for this class was generated from the following file: