protected function validate_text($errors, $field, $text) {
        $problems = qtype_calculated_find_formula_errors_in_text($text);
        if ($problems) {
            $errors[$field] = $problems;
        }
        return $errors;
    }
protected function validate_text($errors, $field, $text) {
        $problems = qtype_calculated_find_formula_errors_in_text($text);
        if ($problems) {
            $errors[$field] = $problems;
        }
        return $errors;
    }
protected function validate_text ( $ errors , $ field , $ text ) { $ problems = qtype_calculated_find_formula_errors_in_text ( $ text ) ; if ( $ problems ) { $ errors [ $ field ] = $ problems ; } return $ errors ; }
Validate the equations in the some question content.
@param array $errors where errors are being accumulated.
@param string $field the field being validated.
@param string $text the content of that field.
@return array the updated $errors array.
Validate the equations in the some question content .