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.

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.

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