Evaluates a specific form submission.
Description
See also
Parameters
- $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.
Source
File: src/modules/evaluators/module.php
protected function evaluate( $submission, $form ) { foreach ( $this->submodules as $slug => $evaluator ) { if ( ! $evaluator->enabled( $form ) ) { continue; } $aggregate_results = $evaluator->get_stats( $form->id ); $aggregate_results = $evaluator->evaluate_single( $aggregate_results, $submission, $form ); $evaluator->update_stats( $form->id, $aggregate_results ); } }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |