recaptcha type form element
More...
|
string | $_helpbutton ='' |
| html for help button, if empty then no help
|
|
recaptcha type form element
HTML class for a recaptcha type element
- Copyright
- 2008 Nicolas Connault nicol.nosp@m.asco.nosp@m.nnaul.nosp@m.t@gm.nosp@m.ail.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
MoodleQuickForm_recaptcha::__construct |
( |
| $elementName = null, |
|
|
| $elementLabel = null, |
|
|
| $attributes = null ) |
constructor
- Parameters
-
string | $elementName | (optional) name of the recaptcha element |
string | $elementLabel | (optional) label for recaptcha element |
mixed | $attributes | (optional) Either a typical HTML attribute string or an associative array |
◆ export_for_template()
MoodleQuickForm_recaptcha::export_for_template |
( |
renderer_base | $output | ) |
|
Function to export the renderer data in a format that is suitable for a mustache template.
This means:
- No complex types - only stdClass, array, int, string, float, bool
- Any additional info that is required for the template is pre-calculated (e.g. capability checks).
- Parameters
-
renderer_base | $output | Used to do a final render of any components that need to be rendered for export. |
- Return values
-
Implements templatable.
◆ get_force_ltr()
MoodleQuickForm_recaptcha::get_force_ltr |
( |
| ) |
|
Get force LTR option.
- Return values
-
◆ getHelpButton()
MoodleQuickForm_recaptcha::getHelpButton |
( |
| ) |
|
get html for help button
- Return values
-
string | html for help button |
◆ MoodleQuickForm_recaptcha()
MoodleQuickForm_recaptcha::MoodleQuickForm_recaptcha |
( |
| $elementName = null, |
|
|
| $elementLabel = null, |
|
|
| $attributes = null ) |
◆ toHtml()
MoodleQuickForm_recaptcha::toHtml |
( |
| ) |
|
Returns the reCAPTCHA element in HTML.
- Return values
-
◆ verify()
MoodleQuickForm_recaptcha::verify |
( |
| $responsestr | ) |
|
Checks recaptcha response with Google.
- Parameters
-
- Return values
-
The documentation for this class was generated from the following file: