OXID eShop CE
4.9.11
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Pages
oxfilecheckerresult.php
Go to the documentation of this file.
1
<?php
2
9
class
oxFileCheckerResult
10
{
11
17
protected
$_aResult
= array();
18
24
protected
$_aResultSummary
= array();
25
31
protected
$_blListAllFiles
=
false
;
32
36
public
function
__construct
()
37
{
38
$this->_aResultSummary[
'OK'
] = 0;
39
$this->_aResultSummary[
'VERSIONMISMATCH'
] = 0;
40
$this->_aResultSummary[
'UNKNOWN'
] = 0;
41
$this->_aResultSummary[
'MODIFIED'
] = 0;
42
$this->_aResultSummary[
'FILES'
] = 0;
43
$this->_aResultSummary[
'SHOP_OK'
] =
true
;
44
}
45
51
public
function
setListAllFiles
($blListAllFiles)
52
{
53
$this->_blListAllFiles = $blListAllFiles;
54
}
55
61
public
function
getListAllFiles
()
62
{
63
return
$this->_blListAllFiles
;
64
}
65
71
public
function
getResult
()
72
{
73
return
$this->_aResult
;
74
}
75
81
public
function
getResultSummary
()
82
{
83
return
$this->_aResultSummary
;
84
}
85
93
public
function
addResult
($aResult)
94
{
95
$this->_aResultSummary[
'FILES'
]++;
96
$this->_aResultSummary[$aResult[
'result'
]]++;
97
98
if
(!$aResult[
'ok'
]) {
99
$this->_aResultSummary[
'SHOP_OK'
] =
false
;
100
}
101
102
if
(($aResult[
'ok'
] && $this->
getListAllFiles
()) || !$aResult[
'ok'
]) {
103
$this->_aResult[] = $aResult;
104
}
105
106
return
$this->_aResultSummary
;
107
}
108
}
application
models
oxfilecheckerresult.php
Generated by
1.8.1.2