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 402 and 403]

(no description)

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

Defines 1 class

edit_override_form:: (4 methods):
  __construct()
  definition()
  display_user_name()
  validation()


Class: edit_override_form  - X-Ref

Form for editing quiz settings overrides.

__construct(moodle_url $submiturl,cm_info $cm, stdClass $quiz, context_module $context,bool $groupmode, ?stdClass $override)   X-Ref
Constructor.

param: moodle_url $submiturl the form action URL.
param: cm_info $cm course module object.
param: stdClass $quiz the quiz settings object.
param: context_module $context the quiz context.
param: bool $groupmode editing group override (true) or user override (false).
param: stdClass|null $override the override being edited, if it already exists.

definition()   X-Ref
No description

display_user_name(stdClass $user, array $extrauserfields)   X-Ref
Get a user's name and identity ready to display.

param: stdClass $user a user object.
param: array $extrauserfields (identity fields in user table only from the user_fields API)
return: string User's name, with extra info, for display.

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