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

Class: HTML_QuickForm_CAPTCHA_Word

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

Class Overview

HTML_QuickForm_input
   |
   --HTML_QuickForm_CAPTCHA
      |
      --HTML_QuickForm_CAPTCHA_Word

Element for HTML_QuickForm to display a CAPTCHA "word" 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 57]
Element for HTML_QuickForm to display a CAPTCHA "word" question

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

Options for the element

  • 'length' (integer) the length of the Word.
  • 'mode' (string) 'single' for separated words.
  • 'locale' (string) locale for Numbers_Words package
  • '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 =  'Word'

[line 79]

CAPTCHA driver
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]

$_options = array(
            'sessionVar' => '_HTML_QuickForm_CAPTCHA',
            'length'     => 4,
            'mode'       => 'single',
            'locale'     => 'en_US',
            'phrase'     => null,
            )

[line 65]

Default options
  • Access: protected

Type:   array
Overrides:   Array


[ Top ]



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