PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 3.6.21
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v3.6.21
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / app / Modules / Form / Settings / Validator / Validator.php

Validator.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 3.6.21, at app/Modules/Form/Settings/Validator/Validator.php

27 lines 564 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentForm\App\Modules\Form\Settings\Validator;
4
5 class Validator
6 {
7 /**
8 * Centralized validator for all the settings data.
9 *
10 * @param $key
11 * @param array $data
12 */
13 public static function validate($key, $data = [])
14 {
15 $key = ucwords($key);
16
17 $class = '\FluentForm\App\Modules\Form\Settings\Validator\\'.$key;
18
19 if (class_exists($class)) {
20 /**
21 * @var $class Confirmations|MailChimps|Notifications
22 */
23 $class::validate($data);
24 }
25 }
26 }
27