Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

The main workshop configuration form The UI mockup has been proposed in MDL-18688 It uses the standard core Moodle formslib. For more info about them, please visit: http://docs.moodle.org/dev/lib/formslib.php

Copyright: 2009 David Mudrak <david.mudrak@gmail.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 495 lines (25 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 mod/workshop/locallib.php

Defines 1 class

mod_workshop_mod_form:: (6 methods):
  __construct()
  definition()
  data_preprocessing()
  data_postprocessing()
  definition_after_data()
  validation()


Class: mod_workshop_mod_form  - X-Ref

Module settings form for Workshop instances

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


definition()   X-Ref
Defines the workshop instance configuration form

return: void

data_preprocessing(&$data)   X-Ref
Prepares the form before data are set

Additional wysiwyg editor are prepared here, the introeditor is prepared automatically by core.
Grade items are set here because the core modedit supports single grade item only.

return: void
param: array $data to be set

data_postprocessing($data)   X-Ref
Combine submission type checkboxes into integer values for the database.

param: stdClass $data The submitted form data.

definition_after_data()   X-Ref
Set the grade item categories when editing an instance


validation($data, $files)   X-Ref
Validates the form input

return: array eventual errors indexed by the field name
param: array $data submitted data
param: array $files submitted files