Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
behat_mod_lti_generator Class Reference
Inheritance diagram for behat_mod_lti_generator:

Protected Member Functions

 get_creatable_entities ()
 Get list of entities for mod_lti behat tests.
 
 get_lti_coursecategories_id (string $idnumbers)
 Handles the switchid ['lti_coursecategories' => 'lti_coursecategories'] for restricting a tool to certain categories.
 
 get_tool_id (string $name)
 Handles the switchid ['tool' => 'typeid'] for finding a tool by name.
 

Detailed Description

Author
Andrew Madden andre.nosp@m.wmad.nosp@m.den@c.nosp@m.atal.nosp@m.yst-a.nosp@m.u.ne.nosp@m.t
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_creatable_entities()

behat_mod_lti_generator::get_creatable_entities ( )
protected

Get list of entities for mod_lti behat tests.

Return values
array[]List of entity definitions.

◆ get_lti_coursecategories_id()

behat_mod_lti_generator::get_lti_coursecategories_id ( string $idnumbers)
protected

Handles the switchid ['lti_coursecategories' => 'lti_coursecategories'] for restricting a tool to certain categories.

Parameters
string$idnumbersa comma-separated string containing the course category id numbers, e.g. 'cata, catb, catc'.
Return values
stringa comma-separated string containing the course category ids.
Exceptions
coding_exceptionif one or more of the categories is unable to be matched by its idnumber.

◆ get_tool_id()

behat_mod_lti_generator::get_tool_id ( string $name)
protected

Handles the switchid ['tool' => 'typeid'] for finding a tool by name.

Parameters
string$namethe name of the tool.
Return values
intthe id of the tool type identified by the name $name.

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