2 namespace wcf\system\form\builder\field\data\processor;
3 use wcf\system\form\builder\IFormDocument;
6 * Represents a data processor for form fields that populates or manipulates the
7 * parameters array passed to the constructor of a database object action.
9 * @author Matthias Schmidt
10 * @copyright 2001-2018 WoltLab GmbH
11 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
12 * @package WoltLabSuite\Core\System\Form\Builder\Field\Data\Processor
15 interface IFormFieldDataProcessor {
17 * Processes the given parameters array and returns the processed version of it.
19 * @param IFormDocument $document documents whose field data is processed
20 * @param array $parameters parameters before processing
21 * @return array parameters after processing
23 public function __invoke(IFormDocument $document, array $parameters);