Moodle  2.2.1
http://www.collinsharper.com
MoodleQuickForm_warning Class Reference
Inheritance diagram for MoodleQuickForm_warning:
Collaboration diagram for MoodleQuickForm_warning:

Public Member Functions

 MoodleQuickForm_warning ($elementName=null, $elementClass='notifyproblem', $text=null)
 setHelpButton ($helpbuttonargs, $function='helpbutton')
 toHtml ()
 getHelpButton ()
 getElementTemplateType ()

Data Fields

 $_elementTemplateType = 'warning'
 $_helpbutton = ''
 $_class = ''

Detailed Description

HTML class for a text type element

Author:
Jamie Pratt public

Definition at line 10 of file warning.php.


Member Function Documentation

Definition at line 55 of file warning.php.

get html for help button

public

Returns:
string html for help button

Definition at line 51 of file warning.php.

MoodleQuickForm_warning ( elementName = null,
elementClass = 'notifyproblem',
text = null 
)

Definition at line 20 of file warning.php.

Here is the call graph for this function:

setHelpButton ( helpbuttonargs,
function = 'helpbutton' 
)

set html for help button

public

Parameters:
array$helparray of arguments to make a help button
string$functionfunction name to call to get html

Definition at line 36 of file warning.php.

Here is the call graph for this function:

toHtml ( )

Returns the static text element in HTML

public

Returns:
string

Reimplemented from HTML_QuickForm_static.

Definition at line 40 of file warning.php.


Field Documentation

$_class = ''

Definition at line 18 of file warning.php.

$_elementTemplateType = 'warning'

Definition at line 11 of file warning.php.

$_helpbutton = ''

Definition at line 17 of file warning.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations