Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Differences Between: [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]

(no description)

File Size: 98 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

behat_mod_lti_generator:: (3 methods):
  get_creatable_entities()
  get_tool_id()
  get_lti_coursecategories_id()


Class: behat_mod_lti_generator  - X-Ref

Define behat generator for mod_lti.

get_creatable_entities()   X-Ref
Get list of entities for mod_lti behat tests.

return: array[] List of entity definitions.

get_tool_id(string $name)   X-Ref
Handles the switchid ['tool' => 'typeid'] for finding a tool by name.

param: string $name the name of the tool.
return: int the id of the tool type identified by the name $name.

get_lti_coursecategories_id(string $idnumbers)   X-Ref
Handles the switchid ['lti_coursecategories' => 'lti_coursecategories'] for restricting a tool to certain categories.

param: string $idnumbers a comma-separated string containing the course category id numbers, e.g. 'cata, catb, catc'.
return: string a comma-separated string containing the course category ids.