PluginProbe
JetFormBuilder — Dynamic Blocks Form Builder / 3.6.5.4
JetFormBuilder — Dynamic Blocks Form Builder v3.6.5.4
3.6.6.1 3.6.6 3.6.5.4 3.6.5.3 3.6.5.2 3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 All 134 releases
jetformbuilder / modules / validation / class-validation-handlers.php

class-validation-handlers.php in JetFormBuilder — Dynamic Blocks Form Builder 3.6.5.4, at modules/validation/class-validation-handlers.php

41 lines 911 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace JFB_Modules\Validation;
3
4 use JFB_Modules\Validation\Handlers\Ajax_Validation_Handler;
5 use JFB_Modules\Validation\Handlers\Self_Validation_Handler;
6 use JFB_Modules\Validation\Handlers\Validation_Handler;
7 use JFB_Components\Repository\Repository_Pattern_Trait;
8 use Jet_Form_Builder\Exceptions\Repository_Exception;
9
10 if ( ! defined( 'WPINC' ) ) {
11 die;
12 }
13
14 class Class_Validation_Handlers {
15
16 use Repository_Pattern_Trait;
17
18 public function __construct() {
19 $this->rep_install();
20 }
21
22 public function rep_instances(): array {
23 return apply_filters(
24 'jet-form-builder/validation-handlers',
25 array(
26 new Validation_Handler(),
27 new Self_Validation_Handler(),
28 new Ajax_Validation_Handler(),
29 )
30 );
31 }
32
33 public function get_handler( string $handler_id ) {
34 return $this->rep_get_item( $handler_id );
35 }
36
37 public function get_handlers(): array {
38 return $this->rep_get_items();
39 }
40 }
41