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

Class: Text_CAPTCHA_Driver_Word

Source Location: /Text_CAPTCHA-1.0.2/Text/CAPTCHA/Driver/Word.php

Class Overview

Text_CAPTCHA_Driver_Base
   |
   --Text_CAPTCHA_Driver_Word

Require Numbers_Words class for generating the text.


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: Text_CAPTCHA_Driver_Base

Text_CAPTCHA_Driver_Base::getCAPTCHA()
Place holder for the real getCAPTCHA() method used by extended classes to return the generated CAPTCHA (as an image resource, as an ASCII text, ...)
Text_CAPTCHA_Driver_Base::getPhrase()
Return secret CAPTCHA phrase This method returns the CAPTCHA phrase
Text_CAPTCHA_Driver_Base::resetDriver()
Reset the phrase and the CAPTCHA.
Text_CAPTCHA_Driver_Base::setCaptcha()
Sets the generated captcha.
Text_CAPTCHA_Driver_Base::setPhrase()
Sets secret CAPTCHA phrase.

Class Details

[line 29]
Require Numbers_Words class for generating the text.


[ Top ]


Method Detail

createCAPTCHA   [line 112]

void createCAPTCHA( )

Place holder for the real _createCAPTCHA() method used by extended classes to generate CAPTCHA from phrase
  • Access: public

[ Top ]

createPhrase   [line 96]

void createPhrase( )

Create random CAPTCHA phrase, "Word edition" (numbers only).

This method creates a random phrase

  • Access: public

[ Top ]

initDriver   [line 66]

void initDriver( [array $options = array()])

Initializes the new Text_CAPTCHA_Driver_Word object.
  • Access: public

Parameters:

array   $options     CAPTCHA options with these keys:
phrase The "secret word" of the CAPTCHA
length The number of characters in the phrase
locale The locale for Numbers_Words
mode The mode for Numbers_Words

[ Top ]


Documentation generated on Fri, 28 Feb 2014 16:00:04 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.