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 401 and 402] [Versions 401 and 403]

This file contains all necessary code to define a wiki editor

Author: Josep Arus
Copyright: 2009 Marc Alier, Jordi Piguillem marc.alier@upc.edu
Copyright: 2009 Universitat Politecnica de Catalunya http://www.upc.edu
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 195 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

MoodleQuickForm_wikieditor:: (2 methods):
  __construct()
  MoodleQuickForm_wikieditor()

name:: (9 methods):
  setWikiFormat()
  toHtml()
  creoleEditor()
  nwikiEditor()
  printWikiEditor()
  getButtons()
  getTokens()
  escapeToken()
  export_for_template()


Class: MoodleQuickForm_wikieditor  - X-Ref

__construct($elementName = null, $elementLabel = null, $attributes = null)   X-Ref
Constructor

param: string $elementName (optional) name of the text field
param: string $elementLabel (optional) text field label
param: string $attributes (optional) Either a typical HTML attribute string or an associative array

MoodleQuickForm_wikieditor($elementName = null, $elementLabel = null, $attributes = null)   X-Ref
Old syntax of class constructor. Deprecated in PHP7.


Class: name  - X-Ref

setWikiFormat($wikiformat)   X-Ref
No description

toHtml()   X-Ref
No description

creoleEditor($textarea)   X-Ref
No description

nwikiEditor($textarea)   X-Ref
No description

printWikiEditor($textarea)   X-Ref
No description

getButtons()   X-Ref
No description

getTokens($format, $token)   X-Ref
No description

escapeToken(&$token)   X-Ref
No description

export_for_template(renderer_base $output)   X-Ref
No description