Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

static warning element Contains class for static warning type element

Copyright: 2008 Jamie Pratt <me@jamiep.org>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 113 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 lib/form/templatable_form_element.php

Defines 2 classes

MoodleQuickForm_warning:: (2 methods):
  __construct()
  MoodleQuickForm_warning()

name:: (4 methods):
  toHtml()
  getHelpButton()
  getElementTemplateType()
  export_for_template()


Class: MoodleQuickForm_warning  - X-Ref

static warning

overrides {@link HTML_QuickForm_static} to display staic warning.

__construct($elementName=null, $elementClass='notifyproblem', $text=null)   X-Ref
constructor

param: string $elementName (optional) name of the field
param: string $elementClass (optional) show as warning or notification => 'notifyproblem'
param: string $text (optional) Text to put in warning field

MoodleQuickForm_warning($elementName=null, $elementClass='notifyproblem', $text=null)   X-Ref
Old syntax of class constructor. Deprecated in PHP7.


Class: name  - X-Ref

toHtml()   X-Ref
Returns HTML for this form element.

return: string

getHelpButton()   X-Ref
get html for help button

return: string html for help button

getElementTemplateType()   X-Ref
Gets the type of form element

return: string

export_for_template(renderer_base $output)   X-Ref
No description