SilverWare\Validator\Extensions\FormFieldExtension
An extension which adds validator functionality to form field instances.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class FormFieldExtension
extends Extension
{
- // methods
- public void updateAttributes()
- public array getValidatorRules()
- public array getValidatorMessages()
- public integer getValidatorRuleCount()
- protected Validator getValidator()
Hierarchy
Extends
- SilverStripe\Core\Extension
Methods
protected
- getValidator() — Answers the validator instance from the associated form.
public
- getValidatorMessages() — Answers an array of the validator messages for the extended field.
- getValidatorRuleCount() — Answers the number of validator rules for the extended field.
- getValidatorRules() — Answers an array of the validator rules for the extended field.
- updateAttributes() — Updates the HTML attributes of the extended field.