HTML_QuickForm_CAPTCHA
[ class tree: HTML_QuickForm_CAPTCHA ] [ index: HTML_QuickForm_CAPTCHA ] [ all elements ]

Class: HTML_QuickForm_CAPTCHA_Equation

Source Location: /HTML_QuickForm_CAPTCHA-0.3.0/HTML/QuickForm/CAPTCHA/Equation.php

Class Overview

HTML_QuickForm_input
   |
   --HTML_QuickForm_CAPTCHA
      |
      --HTML_QuickForm_CAPTCHA_Equation

Element for HTML_QuickForm to display a CAPTCHA equation question


Author(s):

Version:

  • Release: 0.3.0

Copyright:

  • 2006-2008 by Philippe Jausions / 11abacus

Variables


Inherited Variables

Inherited Methods

Class: HTML_QuickForm_CAPTCHA

HTML_QuickForm_CAPTCHA::HTML_QuickForm_CAPTCHA()
Class constructor
HTML_QuickForm_CAPTCHA::destroy()
Destroys the CAPTCHA instance to prevent reuse
HTML_QuickForm_CAPTCHA::exportValue()
Returns the answer/phrase of the CAPTCHA
HTML_QuickForm_CAPTCHA::getValue()
Returns the answer/phrase of the CAPTCHA
HTML_QuickForm_CAPTCHA::setPhrase()
Sets the CAPTCHA question/phrase
HTML_QuickForm_CAPTCHA::toHtml()
Returns the HTML for the CAPTCHA
HTML_QuickForm_CAPTCHA::_initCAPTCHA()
Initializes the CAPTCHA instance (if needed)

Class Details

[line 60]
Element for HTML_QuickForm to display a CAPTCHA equation question

The HTML_QuickForm_CAPTCHA package adds an element to the HTML_QuickForm package to display a CAPTCHA equation question.

Options for the element

  • 'min' (integer) Minimal number to use in an equation.
  • 'max' (integer) Maximal number to use in an equation.
  • 'severity' (integer) Complexity of the equation to resolve (1 = easy, 2 = harder)
  • 'numbersToText' (boolean) Whether to use the Numbers_Words package to convert numbers to text,
  • 'sessionVar' (string) name of session variable containing the Text_CAPTCHA instance (defaults to _HTML_QuickForm_CAPTCHA.)

This package requires the use of a PHP session.



[ Top ]


Class Variables

$_CAPTCHA_driver =  'Equation'

[line 81]

CAPTCHA driver
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]

$_options = array(
            'sessionVar'    => '_HTML_QuickForm_CAPTCHA',
            'severity'      => 1,
            'numbersToText' => false,
            'phrase'        => null,
            )

[line 68]

Default options
  • Access: protected

Type:   array
Overrides:   Array


[ Top ]



Documentation generated on Mon, 11 Mar 2019 15:21:02 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.