package | Gems |
---|---|
subpackage | Validate |
copyright | Copyright (c) 2015 Erasmus MC |
license | New BSD License |
since | Class available since version 1.7.2 Jan 12, 2016 12:28:01 PM |
__construct(integer $surveyId, \Zend_Db_Adapter_Abstract $adapter = null
)
The KeyFields are fields that occur as names in the context of the form and that identify the current row - that can have the value. A database adapter may optionally be supplied to avoid using the registered default adapter.
integer
Survey id for the current survey
\Zend_Db_Adapter_Abstract
An optional database adapter to use.
getSelect() : \Zend_Db_Select
If no select object was supplied to the constructor, then it will auto-generate one from the given table, schema, field, and adapter options.
\Zend_Db_Select
The Select object which will be usedisValid(mixed $value, array $context = array()
) : boolean
If $value fails validation, then this method returns false, and getMessages() will return an array of messages that explain why the validation failed.
mixed
array
\Zend_Validate_Exception |
If validation of $value is impossible |
---|
boolean
$_surveyId : integer
$_tested : array