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

Public Member Functions

 MoodleQuickForm_recaptcha ($elementName=null, $elementLabel=null, $attributes=null)
 toHtml ()
 setHelpButton ($helpbuttonargs, $function='helpbutton')
 getHelpButton ()
 verify ($challenge_field, $response_field)

Data Fields

 $_helpbutton = ''
 $_https = false

Detailed Description

Definition at line 19 of file recaptcha.php.


Member Function Documentation

get html for help button

public

Returns:
string html for help button

Definition at line 112 of file recaptcha.php.

MoodleQuickForm_recaptcha ( elementName = null,
elementLabel = null,
attributes = null 
)

$form->addElement('textarea_counter', 'message', 'Message', array('cols'=>60, 'rows'=>10), 160);

Definition at line 36 of file recaptcha.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 102 of file recaptcha.php.

Here is the call graph for this function:

toHtml ( )

Returns the recaptcha element in HTML

Since:
1.0 public
Returns:
string

Reimplemented from HTML_QuickForm_input.

Definition at line 54 of file recaptcha.php.

Here is the call graph for this function:

verify ( challenge_field,
response_field 
)

Definition at line 116 of file recaptcha.php.

Here is the call graph for this function:


Field Documentation

$_helpbutton = ''

Definition at line 26 of file recaptcha.php.

$_https = false

Definition at line 28 of file recaptcha.php.


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