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

Class: HTML_QuickForm_CAPTCHA_Figlet

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

Class Overview

HTML_QuickForm_input
   |
   --HTML_QuickForm_CAPTCHA
      |
      --HTML_QuickForm_CAPTCHA_Figlet

Element for HTML_QuickForm to display a CAPTCHA figlet


Author(s):

Version:

  • Release: 0.3.0

Copyright:

  • 2006-2008 by Philippe Jausions / 11abacus

Variables

Methods


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 63]
Element for HTML_QuickForm to display a CAPTCHA figlet

The HTML_QuickForm_CAPTCHA package adds an element to the HTML_QuickForm package to display a CAPTCHA figlet

Options for the element

  • 'width' (integer) Width of figlet (default is 200px)
  • 'output' (string) Output format: "html", "text" or "javascript" (default is "html").
  • 'length' (integer) number of letters in the figlet (default is 6)
  • 'options' (array) only index supported is "font_file", which should either be one figlet font file path, or an array of figlet font file paths (one we be picked randomly)
  • '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 =  'Figlet'

[line 85]

CAPTCHA driver
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]

$_options = array(
            'sessionVar'    => '_HTML_QuickForm_CAPTCHA',
            'output'        => 'html',
            'width'         => 200,
            'length'        => 6,
            'phrase'        => null,
            )

[line 71]

Default options
  • Access: protected

Type:   array
Overrides:   Array


[ Top ]



Method Detail

toHtml   [line 97]

string toHtml( )

Returns the HTML for the CAPTCHA

This can be overwritten by sub-classes for specific output behavior (for instance the Image CAPTCHA displays an image)

  • Access: public

Overrides HTML_QuickForm_CAPTCHA::toHtml() (Returns the HTML for the CAPTCHA)
[ Top ]


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