\Dewdrop\Fields\RowCollectionEditorInputFilterFactory

A factory to generate a \Zend\InputFilter\Input object to validate your RowCollectionEditor prior to saving.

Summary

Methods
Properties
Constants
__construct()
createInstance()
No public properties found
No constants found
createCallbackValidator()
No protected properties found
N/A
No private methods found
$rowCollectionEditor
N/A

Properties

Methods

__construct()

__construct(\Dewdrop\Fields\RowCollectionEditor  $rowCollectionEditor) 

Supply the RowCollectionEditor object.

Parameters

\Dewdrop\Fields\RowCollectionEditor $rowCollectionEditor

createInstance()

createInstance() : \Zend\InputFilter\Input

Create the Input instance.

We specify that validation should continue if the input is empty because the RowCollectionEditor itself won't every receive a value. It is just iterating over its own editors and setting values/validating them each.

Returns

\Zend\InputFilter\Input

createCallbackValidator()

createCallbackValidator() : Callback

Create the Callback validator that will be used to ensure the RowCollectionEditor is valid. We iterate over all the editors it has, pass data to the editor via isValid() and return an error message if any editor fails.

Returns

Callback