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
100
Details
string
$_imgDir= '"./images/captcha/"'
Directory for generated images
"./images/captcha/"
Details
string
$_imgUrl= '"/images/captcha/"'
URL for accessing images
"/images/captcha/"
Details
int
$_lineNoiseLevel= '5'
Number of noise lines on image Used twice - before and after transform
5
Details
string
$_startImage= ''
Image to use as starting point Default is blank image. If provided, should be PNG image.

_generateImage(
string $id, string $word
)
:
void
Generate image captcha
Override this function if you want different image generator Wave transform from http://www.captcha.ru/captchas/multiwave/
Name | Type | Description |
---|---|---|
$id | string | Captcha ID |
$word | string | Captcha word |

render(
\Zend_View_Interface $view
=
null, mixed $element
=
null
)
:
string
Display the captcha
Name | Type | Description |
---|---|---|
$view | \Zend_View_Interface | |
$element | mixed |
Type | Description |
---|---|
string |

setLineNoiseLevel(
int $lineNoiseLevel
)
:
void
Name | Type | Description |
---|---|---|
$lineNoiseLevel | int |