Evaluates a specific form submission.
Description
This method is run whenever a submission is completed to update the aggregate calculations. Aggregate calculations are stored so that forms with a very high number of submissions do not need to be calculated live.
See also
Parameters
- $aggregate_results
-
(array) (Required) Aggregate results to update.
- $submission
-
(awsmug\Torro_Forms\DB_Objects\Submissions\Submission) (Required) Submission to evaluate.
- $form
-
(awsmug\Torro_Forms\DB_Objects\Forms\Form) (Required) Form the submission applies to.
Return
(array) Updated aggregate evaluation results.
Source
File: src/modules/evaluators/evaluator.php
public abstract function evaluate_single( $aggregate_results, $submission, $form );
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |