OXID eShop CE
4.10.6
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
oxrequiredfieldvalidator.php
Go to the documentation of this file.
1
<?php
2
7
class
oxRequiredFieldValidator
8
{
9
17
public
function
validateFieldValue
($sFieldValue)
18
{
19
$blValid =
true
;
20
if
(is_array($sFieldValue)) {
21
$blValid = $this->
_validateFieldValueArray
($sFieldValue);
22
}
else
{
23
if
(!trim($sFieldValue)) {
24
$blValid =
false
;
25
}
26
}
27
28
return
$blValid;
29
}
30
38
private
function
_validateFieldValueArray
($aFieldValues)
39
{
40
$blValid =
true
;
41
foreach
($aFieldValues as $sValue) {
42
if
(!trim($sValue)) {
43
$blValid =
false
;
44
break
;
45
}
46
}
47
48
return
$blValid;
49
}
50
}
application
models
oxrequiredfieldvalidator.php
Generated by
1.8.1.2