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

Class: Text_CAPTCHA_Driver_Image

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

Class Overview

Text_CAPTCHA_Driver_Base
   |
   --Text_CAPTCHA_Driver_Image

Text_CAPTCHA_Driver_Image - Text_CAPTCHA driver graphical CAPTCHAs


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 31]
Text_CAPTCHA_Driver_Image - Text_CAPTCHA driver graphical CAPTCHAs

Class to create a graphical Turing test



[ Top ]


Method Detail

createCAPTCHA   [line 129]

void createCAPTCHA( )

Create CAPTCHA image.

This method creates a CAPTCHA image.

  • Throws: Text_CAPTCHA_Exception when image generation with Image_Text produces an error
  • Access: public

[ Top ]

createPhrase   [line 269]

void createPhrase( )

Create random CAPTCHA phrase, Image edition (with size check).

This method creates a random phrase, maximum 8 characters or width / 25, whatever is smaller.

  • Access: public

[ Top ]

initDriver   [line 83]

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

Init function

Initializes the new Text_CAPTCHA_Driver_Image object and creates a GD image

  • Access: public

Parameters:

array   $options   —  CAPTCHA options

[ Top ]


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