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.

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