[ Index ]

PHP Cross Reference of Moodle 310

title

Body

[close]

/lib/form/ -> warning.php (summary)

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 1 class

MoodleQuickForm_warning:: (6 methods):
  __construct()
  MoodleQuickForm_warning()
  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.


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



Generated: Wed Jan 22 11:59:49 2025 Cross-referenced by PHPXref 0.7.1