Captcha/Base.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Captcha
- Subpackage
- Adapter
\Zend_Captcha_Base
Package: Zend_Captcha\Adapter





Base class for Captcha adapters
Provides some utility functionality to build on
- Implements
- Parent(s)
- \Zend_Validate_Abstract
- Children
- \Zend_Captcha_ReCaptcha
- \Zend_Captcha_Word
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Version
- $Id$
Properties
Methods


__construct(array | \Zend_Config $options = null) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$options | array | \Zend_Config |


getDecorator() : null
Get optional decorator
By default, return null, indicating no extra decorator needed.
ReturnsType | Description |
---|---|
null |


setConfig(\Zend_Config $config) : \Zend_Captcha_Base
Set object state from config object
Parameters
Returns
Name | Type | Description |
---|---|---|
$config | \Zend_Config |
Type | Description |
---|---|
\Zend_Captcha_Base |


setName(string $name) : \Zend_Captcha_Adapter
Set name
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
\Zend_Captcha_Adapter |


setOption(string $key, string $value) : \Zend_Form_Element
Set single option for the object
Parameters
Returns
Name | Type | Description |
---|---|---|
$key | string | |
$value | string |
Type | Description |
---|---|
\Zend_Form_Element |


setOptions(array $options = null) : \Zend_Form_Element
Set object state from options array
Parameters
Returns
Name | Type | Description |
---|---|---|
$options | array |
Type | Description |
---|---|
\Zend_Form_Element |