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

Public Member Functions

 MoodleQuickForm_checkbox ($elementName=null, $elementLabel=null, $text='', $attributes=null)
 setHelpButton ($helpbuttonargs, $function='helpbutton')
 getHelpButton ()
 onQuickFormEvent ($event, $arg, &$caller)
 toHtml ()
 getFrozenHtml ()

Data Fields

 $_helpbutton = ''

Detailed Description

HTML class for a checkbox type element

Author:
Jamie Pratt public

Definition at line 10 of file checkbox.php.


Member Function Documentation

Returns the disabled field. Accessibility: the return "[ ]" from parent class is not acceptable for screenreader users, and we DO want a label.

Returns:
string

Reimplemented from HTML_QuickForm_checkbox.

Definition at line 87 of file checkbox.php.

Here is the call graph for this function:

get html for help button

public

Returns:
string html for help button

Definition at line 36 of file checkbox.php.

MoodleQuickForm_checkbox ( elementName = null,
elementLabel = null,
text = '',
attributes = null 
)

Definition at line 17 of file checkbox.php.

Here is the call graph for this function:

onQuickFormEvent ( event,
arg,
&$  caller 
)

Called by HTML_QuickForm whenever form event is made on this element

Parameters:
string$eventName of event
mixed$argevent arguments
object$callercalling object
Since:
1.0 public
Returns:
void

Reimplemented from HTML_QuickForm_checkbox.

Definition at line 50 of file checkbox.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 27 of file checkbox.php.

Here is the call graph for this function:

toHtml ( )

Returns the checkbox element in HTML

Since:
1.0 public
Returns:
string

Reimplemented from HTML_QuickForm_checkbox.

Definition at line 77 of file checkbox.php.


Field Documentation

$_helpbutton = ''

Definition at line 16 of file checkbox.php.


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