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.

Provides {@see \core_contentbank\form\edit_content} class.

Copyright: 2020 Victor Deniz <victor@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 90 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

edit_content:: (2 methods):
  __construct()
  add_action_buttons()


Class: edit_content  - X-Ref

Defines the form for editing a content.

__construct(string $action = null, array $customdata = null, string $method = 'post')   X-Ref
Constructor.

param: string $action The action attribute for the form.
param: array $customdata Data to set during instance creation.
param: string $method Form method.

add_action_buttons($cancel = true, $submitlabel = null)   X-Ref
Overrides formslib's add_action_buttons() method.

param: bool $cancel
param: string|null $submitlabel
return: void