OXID eShop CE  4.8.11
 All Classes Files Functions Variables Pages
oxfilecheckerresult.php
Go to the documentation of this file.
1 <?php
2 
10 
16  protected $_aResult = array();
17 
23  protected $_aResultSummary = array();
24 
30  protected $_blListAllFiles = false;
31 
35  public function __construct()
36  {
37  $this->_aResultSummary['OK'] = 0;
38  $this->_aResultSummary['VERSIONMISMATCH'] = 0;
39  $this->_aResultSummary['UNKNOWN'] = 0;
40  $this->_aResultSummary['MODIFIED'] = 0;
41  $this->_aResultSummary['FILES'] = 0;
42  $this->_aResultSummary['SHOP_OK'] = true;
43  }
44 
50  public function setListAllFiles( $blListAllFiles )
51  {
52  $this->_blListAllFiles = $blListAllFiles;
53  }
54 
60  public function getListAllFiles()
61  {
63  }
64 
70  public function getResult()
71  {
72  return $this->_aResult;
73  }
74 
80  public function getResultSummary()
81  {
83  }
84 
91  public function addResult( $aResult )
92  {
93  $this->_aResultSummary['FILES']++;
94  $this->_aResultSummary[$aResult['result']]++;
95 
96  if ( !$aResult['ok'] ) {
97  $this->_aResultSummary['SHOP_OK'] = false;
98  }
99 
100  if ( ( $aResult['ok'] && $this->getListAllFiles() ) || !$aResult['ok'] ) {
101  $this->_aResult[] = $aResult;
102  }
103 
104  return $this->_aResultSummary;
105  }
106 }