Browse
For agents
About
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder
/
6.2.11
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder
v6.2.11
Switch version
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
Overview
Code
fluentform
/
app
/
Services
/
Settings
/
Validator.php
Validator.php
in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 6.2.11, at app/Services/Settings/Validator.php
29 lines
608 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
\
Services
\
Settings
;
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\Services\Settings\Validator
\\
'
.
$
key
;
18
19
if
(
class_exists
(
$
class
)
)
{
20
/**
21
* Validator class
22
*
23
*
@var
$class \FluentForm\App\Services\Settings\Validator\Validate
24
*/
25
$
class
::
validate
(
$
data
)
;
26
}
27
}
28
}
29