Browse
For agents
About
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder
/
1.2.4
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder
v1.2.4
Switch version
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
3.6.66
All 195 releases
Overview
Code
fluentform
/
app
/
Modules
/
Form
/
Settings
/
Validator
/
Validator.php
Validator.php
in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 1.2.4, at app/Modules/Form/Settings/Validator/Validator.php
26 lines
563 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
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
}