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

Class: PhpIndex_Captcha_Adapter_Image

Source Location: /Captcha/Adapter/Image.php

Class Overview


PhpIndex captcha image adapter class


Implements interfaces:

Variables

Methods



Class Details

[line 22]
PhpIndex captcha image adapter class



[ Top ]


Class Variables

$_captchaCode =

[line 43]

Captcha code



Tags:

access:  protected

Type:   string


[ Top ]

$_height =  30

[line 36]

Captcha image height



Tags:

access:  protected

Type:   integer


[ Top ]

$_width =  100

[line 29]

Captcha image width



Tags:

access:  protected

Type:   integer


[ Top ]



Class Methods


method check [line 92]

boolean check( $keys, string $captchaCode)

Check captcha code



Tags:

access:  public


Parameters:

array   $keys   Key for the Captcha
string   $captchaCode   Give Captcha code

[ Top ]

method generate [line 53]

string generate( $keys, [integer $width = null], [integer $height = null])

Generate captcha



Tags:

access:  public



Implementation of:
PhpIndex_Captcha_Adapter_Interface::generate()
Generate captcha

Parameters:

array   $keys   Keys to generate Captcha
integer   $width   Image width
integer   $height   Image height

[ Top ]

method getCode [line 106]

string getCode( )

Get captcha code



Tags:

access:  public


[ Top ]

method render [line 75]

void render( string $captchaCode, string $font, integer $size, [integer $width = null], [integer $height = null])

Render the captcha image



Tags:

access:  public


Parameters:

string   $captchaCode   Captcha code
string   $font   Captcha font
integer   $size   Captcha font size
integer   $width   Image width
integer   $height   Image height

[ Top ]

method _generateCaptcha [line 117]

string _generateCaptcha( $keys)

Generate captcha code



Tags:

access:  protected


Parameters:

array   $keys   Keys for the captcha

[ Top ]

method _setDimensions [line 131]

void _setDimensions( [integer $width = null], [integer $height = null])

Set captcha dimensions



Tags:

access:  protected


Parameters:

integer   $width   Image width
integer   $height   Image height

[ Top ]


Documentation generated on Mon, 21 Feb 2011 21:14:13 +0200 by phpDocumentor 1.4.3