Zend Framework
1.12
|
Public Member Functions | |
getCaptcha () | |
Get captcha adapter. | |
setCaptcha ($captcha, $options=array()) | |
Set captcha adapter. | |
__construct ($spec, $options=null) | |
Constructor. | |
setOptions (array $options) | |
Set options. | |
render (Zend_View_Interface $view=null) | |
Render form element. | |
getPluginLoader ($type) | |
Retrieve plugin loader for validator or filter chain. | |
addPrefixPath ($prefix, $path, $type=null) | |
Add prefix path for plugin loader for captcha adapters. | |
loadDefaultDecorators () | |
Load default decorators. | |
isValid ($value, $context=null) | |
Is the captcha valid? | |
Public Attributes | |
const | CAPTCHA = 'CAPTCHA' |
Captcha plugin type constant. | |
Protected Attributes | |
$_captcha | |
Additional Inherited Members | |
![]() | |
static | resolveElementId (Zend_Form_Decorator_Interface $decorator) |
Used to resolve and return an element ID. | |
![]() | |
_filterValue (&$value, &$key) | |
Filter a value. | |
_getDecorator ($name, $options) | |
Instantiate a decorator based on class name or class name fragment. | |
_loadFilter (array $filter) | |
Lazy-load a filter. | |
_loadValidator (array $validator) | |
Lazy-load a validator. | |
_loadDecorator (array $decorator, $name) | |
Lazy-load a decorator. | |
_getErrorMessages () | |
Retrieve error messages and perform translation and value substitution. | |
_hasErrorMessages () | |
Are there custom error messages registered? | |
__construct | ( | $spec, | |
$options = null |
|||
) |
Constructor.
$spec may be:
string | array | Zend_Config | $spec |
addPrefixPath | ( | $prefix, | |
$path, | |||
$type = null |
|||
) |
Add prefix path for plugin loader for captcha adapters.
This method handles the captcha type, the rest is handled by the parent
string | $prefix | |
string | $path | |
string | $type |
getCaptcha | ( | ) |
Get captcha adapter.
getPluginLoader | ( | $type | ) |
Retrieve plugin loader for validator or filter chain.
Support for plugin loader for Captcha adapters
string | $type |
Zend_Loader_Exception | on invalid type. |
isValid | ( | $value, | |
$context = null |
|||
) |
Is the captcha valid?
mixed | $value | |
mixed | $context |
loadDefaultDecorators | ( | ) |
Load default decorators.
render | ( | Zend_View_Interface | $view = null | ) |
setCaptcha | ( | $captcha, | |
$options = array() |
|||
) |
Set captcha adapter.
string | array | Zend_Captcha_Adapter | $captcha | |
array | $options |
setOptions | ( | array | $options | ) |
Set options.
Overrides to allow passing captcha options
array | $options |
|
protected |
const CAPTCHA = 'CAPTCHA' |
Captcha plugin type constant.