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.
Word-based captcha adapter
Generates random word which user should recognise

boolean
$_keepSession= 'false'
Should generate() keep session or create a new one?
false
Details
array
$_messageTemplates= 'array(
self::MISSING_VALUE => 'Empty captcha value''
Error messages
array(
self::MISSING_VALUE => 'Empty captcha value'
Details
string
$_sessionClass= ''Zend_Session_Namespace''
Class name for sessions
'Zend_Session_Namespace'
Details
boolean
$_useNumbers= 'true'
Should the numbers be used or only letters
true
Details
_setId(
string $id
)
:
void
Set captcha identifier
Name | Type | Description |
---|---|---|
$id | string | return Zend_Captcha_Word |

getSession(
)
:
\Zend_Session_Namespace
Get session object
Type | Description |
---|---|
\Zend_Session_Namespace |

getWordlen(
)
:
integer
Retrieve word length to use when genrating captcha
Type | Description |
---|---|
integer |

isValid(
mixed $value, $context
=
null
)
:
boolean
Validate the word
Name | Type | Description |
---|---|---|
$value | mixed | |
$context |
Type | Description |
---|---|
boolean |

setKeepSession(
bool $keepSession
)
:
\Zend_Captcha_Word
Sets if session should be preserved on generate()
Name | Type | Description |
---|---|---|
$keepSession | bool | Should session be kept on generate()? |
Type | Description |
---|---|
\Zend_Captcha_Word |

setSession(
\Zend_Session_Namespace $session
)
:
\Zend_Captcha_Word
Set session namespace object
Name | Type | Description |
---|---|---|
$session | \Zend_Session_Namespace |
Type | Description |
---|---|
\Zend_Captcha_Word |

setUseNumbers(
bool $_useNumbers
)
:
\Zend_Captcha_Word
Set if numbers should be included in the pattern
Name | Type | Description |
---|---|---|
$_useNumbers | bool | numbers should be included in the pattern? |
Type | Description |
---|---|
\Zend_Captcha_Word |