Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
behat_mod_forum_generator Class Reference
Inheritance diagram for behat_mod_forum_generator:

Protected Member Functions

 get_creatable_entities ()
 Get a list of the entities that Behat can create using the generator step.
 
 get_forum_id (string $idnumberorname)
 Get the forum id using an activity idnumber or name.
 
 get_group_id ($idnumber)
 Gets the group id from it's idnumber.
 
 preprocess_discussion (array $data)
 Preprocess discussion data.
 
 preprocess_post (array $data)
 Preprocess post data.
 

Detailed Description

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

Member Function Documentation

◆ get_creatable_entities()

behat_mod_forum_generator::get_creatable_entities ( )
protected

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

Return values
array

◆ get_forum_id()

behat_mod_forum_generator::get_forum_id ( string $idnumberorname)
protected

Get the forum id using an activity idnumber or name.

Parameters
string$idnumberornameThe forum activity idnumber or name.
Return values
intThe forum id

◆ get_group_id()

behat_mod_forum_generator::get_group_id ( $idnumber)
protected

Gets the group id from it's idnumber.

It allows using 'All participants' as idnumber.

Exceptions
Exception
Parameters
string$idnumber
Return values
int

◆ preprocess_discussion()

behat_mod_forum_generator::preprocess_discussion ( array $data)
protected

Preprocess discussion data.

Parameters
array$dataRaw data.
Return values
arrayProcessed data.

◆ preprocess_post()

behat_mod_forum_generator::preprocess_post ( array $data)
protected

Preprocess post data.

Parameters
array$dataRaw data.
Return values
arrayProcessed data.

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