Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

Checkbox element used for bulk inserting values in the gradebook.

Copyright: 2014 Moodle Pty Ltd (http://moodle.com)
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 116 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

bulk_insert:: (6 methods):
  __construct()
  is_applied()
  get_type()
  get_insert_value()
  html()
  name_for()


Class: bulk_insert  - X-Ref

Checkbox element used for bulk inserting values in the gradebook.

__construct($item)   X-Ref
Constructor

param: mixed $item The grade item or user.

is_applied($data)   X-Ref
Is this checkbox checked?

param: array|object $data The form data
return: bool

get_type($data)   X-Ref
Get the type of this input (user or grade)

param: array|object $data The form data
return: string

get_insert_value($data)   X-Ref
Get the value from either the user or grade.

param: array|object $data The form data
return: string

html()   X-Ref
Generate the html for this form element.

return: string HTML

name_for($extend)   X-Ref
This form element has 3 elements with different suffixes.
Generate the name with the suffix.

param: string $extend The suffix.
return: string