83415c10a0038217a5e6a77e8e8899e08bec5393
[GitHub/WoltLab/WCF.git] /
1 <?php
2 namespace wcf\system\form\builder\field\data\processor;
3 use wcf\system\form\builder\IFormDocument;
4
5 /**
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.
8 *
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
13 * @since 5.2
14 */
15 interface IFormFieldDataProcessor {
16 /**
17 * Processes the given parameters array and returns the processed version of it.
18 *
19 * @param IFormDocument $document documents whose field data is processed
20 * @param array $parameters parameters before processing
21 * @return array parameters after processing
22 */
23 public function __invoke(IFormDocument $document, array $parameters);
24 }