Evaluates all (completed) form submissions for a form.
Description
If the number of submissions for the form is very high, stored aggregate results will be used. Otherwise the evaluation results will be calculated live.
See also
Parameters
- $form
-
(awsmug\Torro_Forms\DB_Objects\Forms\Form) (Required) Form for which to evaluate all submissions.
Return
(array) Evaluation results for all completed form submissions.
Source
File: src/modules/evaluators/evaluator.php
public function evaluate_all( $form ) { if ( $this->should_use_aggregate_calculations( $form ) ) { return $this->get_stats( $form->id ); } $submissions = $form->get_submissions( array( 'status' => 'completed', ) ); return $this->evaluate_multiple( array(), $submissions, $form ); }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |