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 310 and 403] [Versions 311 and 403] [Versions 39 and 403] [Versions 400 and 403] [Versions 401 and 403] [Versions 402 and 403]

This file defines the main lti configuration form

Author: Marc Alier
Author: Jordi Piguillem
Author: Nikolas Galanis
Author: Chris Scribner
Copyright: 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis
Copyright: 2009 Universitat Politecnica de Catalunya http://www.upc.edu
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 550 lines (30 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

mod_lti_mod_form:: (5 methods):
  __construct()
  legacy_instance_form_definition()
  definition()
  set_data()
  validation()


Class: mod_lti_mod_form  - X-Ref

__construct($current, $section, $cm, $course)   X-Ref
Constructor.

Throws an exception if trying to init the form for a new manual instance of a tool, which is not supported in 4.3 onward.

param: \stdClass $current the current form data.
param: string $section the section number.
param: \stdClass $cm the course module object.
param: \stdClass $course the course object.

legacy_instance_form_definition(array $instancetypes)   X-Ref
Defines the form for legacy instances. Here tool config is frozen because the manual configuration method is deprecated.

param: array $instancetypes the array of options for the legacy 'preconfigured tools' select.
return: void

definition()   X-Ref
No description

set_data($defaultvalues)   X-Ref
Sets the current values handled by services in case of update.

param: object $defaultvalues default values to populate the form with.

validation($data, $files)   X-Ref
No description