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.

TinyMCE admin setting stuff.

Copyright: 2012 Petr Skoda {@link http://skodak.org}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 222 lines (8 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 1 file
 lib/editor/tinymce/lib.php

Defines 2 classes

tiynce_subplugins_settings:: (6 methods):
  __construct()
  get_setting()
  get_defaultsetting()
  write_setting()
  is_related()
  output_html()

editor_tinymce_json_setting_textarea:: (1 method):
  output_html()


Class: tiynce_subplugins_settings  - X-Ref

Special class for TinyMCE subplugin administration.

__construct()   X-Ref
No description

get_setting()   X-Ref
Always returns true, does nothing.

return: true

get_defaultsetting()   X-Ref
Always returns true, does nothing.

return: true

write_setting($data)   X-Ref
Always returns '', does not write anything.

param: string $data
return: string Always returns ''

is_related($query)   X-Ref
Checks if $query is one of the available subplugins.

param: string $query The string to search for
return: bool Returns true if found, false if not

output_html($data, $query='')   X-Ref
Builds the XHTML to display the control.

param: string $data Unused
param: string $query
return: string

Class: editor_tinymce_json_setting_textarea  - X-Ref

output_html($data, $query='')   X-Ref
Returns an XHTML string for the editor

param: string $data
param: string $query
return: string XHTML string for the editor