Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Image-based captcha element
Generates image displaying random word
int $_dotNoiseLevel = '100'Number of noise dots on image Used twice - before and after transform
Detailsint $_expiration = '600'How long to keep generated images
Detailsstring $_font = ''Image font file
Detailsint $_fsize = '24'Font size
Detailsint $_gcFreq = '10'How frequently to execute garbage collection
Detailsint $_height = '50'Image height
Detailsstring $_imgAlt = ''Image's alt tag content
Detailsstring $_imgDir = './images/captcha/'Directory for generated images
Detailsstring $_imgUrl = '/images/captcha/'URL for accessing images
Detailsint $_lineNoiseLevel = '5'Number of noise lines on image Used twice - before and after transform
Detailsstring $_startImage = ''Image to use as starting point Default is blank image. If provided, should be PNG image.
Detailsstring $_suffix = '.png'Image suffix (including dot)
Detailsint $_width = '200'Image width
Details_gc(
)
:
Remove old files from image directory
Details_generateImage(
string $id, string $word
)
:
Generate image captcha
Override this function if you want different image generator Wave transform from http://www.captcha.ru/captchas/multiwave/
Details_randomFreq(
)
:
floatGenerate random frequency
Details_randomPhase(
)
:
floatGenerate random phase
Details_randomSize(
)
:
intGenerate random character size
Detailsgenerate(
)
:
stringGenerate captcha
DetailsgetDotNoiseLevel(
)
:
int
DetailsgetExpiration(
)
:
intGet captcha expiration
DetailsgetFont(
)
:
stringGet font to use when generating captcha
DetailsgetFontSize(
)
:
intGet font size
DetailsgetGcFreq(
)
:
intGet garbage collection frequency
DetailsgetHeight(
)
:
intGet captcha image height
DetailsgetImgAlt(
)
:
string
DetailsgetImgDir(
)
:
stringGet captcha image directory
DetailsgetImgUrl(
)
:
stringGet captcha image base URL
DetailsgetLineNoiseLevel(
)
:
int
DetailsgetStartImage(
)
:
string
DetailsgetSuffix(
)
:
stringGet captcha image file suffix
DetailsgetWidth(
)
:
intGet captcha image width
Detailsrender(
Zend_View_Interface $view
=
null, mixed $element
=
null
)
:
stringDisplay the captcha
DetailssetDotNoiseLevel(
int $dotNoiseLevel
)
:
DetailssetExpiration(
int $expiration
)
:
Zend_Captcha_ImageSet captcha expiration
DetailssetFont(
string $font
)
:
Zend_Captcha_ImageSet captcha font
DetailssetFontSize(
int $fsize
)
:
Zend_Captcha_ImageSet captcha font size
DetailssetGcFreq(
int $gcFreq
)
:
Zend_Captcha_ImageSet garbage collection frequency
DetailssetHeight(
int $height
)
:
Zend_Captcha_ImageSet captcha image height
DetailssetImgAlt(
string $imgAlt
)
:
DetailssetImgDir(
string $imgDir
)
:
Zend_Captcha_ImageSet captcha image storage directory
DetailssetImgUrl(
string $imgUrl
)
:
Zend_Captcha_ImageSet captcha image base URL
DetailssetLineNoiseLevel(
int $lineNoiseLevel
)
:
DetailssetStartImage(
string $startImage
)
:
DetailssetSuffix(
string $suffix
)
:
Zend_Captcha_ImageSet captch image filename suffix
DetailssetWidth(
int $width
)
:
Zend_Captcha_ImageSet captcha image width
Details