Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

A bulk operation for the manual enrolment plugin to edit selected users.

Copyright: 2018 Farhan Karmali
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 161 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

enrol_self_editselectedusers_operation:: (4 methods):
  get_title()
  get_identifier()
  process()
  get_form()


Class: enrol_self_editselectedusers_operation  - X-Ref

A bulk operation for the manual enrolment plugin to edit selected users.

get_title()   X-Ref
Returns the title to display for this bulk operation.

return: string

get_identifier()   X-Ref
Returns the identifier for this bulk operation. This is the key used when the plugin
returns an array containing all of the bulk operations it supports.


process(course_enrolment_manager $manager, array $users, stdClass $properties)   X-Ref
Processes the bulk operation request for the given userids with the provided properties.

param: course_enrolment_manager $manager
param: array $users
param: stdClass $properties The data returned by the form.

get_form($defaultaction = null, $defaultcustomdata = null)   X-Ref
Returns a enrol_bulk_enrolment_operation extension form to be used
in collecting required information for this operation to be processed.

param: string|moodle_url|null $defaultaction
param: mixed $defaultcustomdata
return: enrol_self_editselectedusers_form