1 | <?php |
||
12 | class LocalUpgradePackage implements PackageDataProviderInterface |
||
13 | { |
||
14 | private $upgradePackagePath; |
||
|
|||
15 | |||
16 | private $zipExtractor; |
||
17 | |||
18 | private $data; |
||
19 | |||
20 | private $etractedPackagePath; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * LocalUpgradePackage constructor. |
||
25 | * |
||
26 | * @param Cache $cache |
||
27 | * @param $zipExtractor |
||
28 | * @param String $pathToBuild |
||
29 | */ |
||
30 | public function __construct() |
||
34 | |||
35 | /* |
||
36 | * calculates all modified files in new directory |
||
37 | */ |
||
38 | public function getListOfCustomizations(Context $context) |
||
58 | /** |
||
59 | * Get list of files needs to be deleted |
||
60 | * |
||
61 | * @param String $pathToUpgradePackage |
||
62 | * |
||
63 | * @return mixed |
||
64 | */ |
||
65 | public function getListOfDeletedFiles($pathToUpgradePackage) |
||
69 | /** |
||
70 | * Get list of files needs to be Modified |
||
71 | * |
||
72 | * @param String $pathToUpgradePackage |
||
73 | * |
||
74 | * @return mixed |
||
75 | */ |
||
76 | public function getListOfModifiedFiles($pathToUpgradePackage) |
||
80 | /** |
||
81 | * Get list of scripts needs to be run for upgrade |
||
82 | * |
||
83 | * @param String $pathToUpgradePackage |
||
84 | * |
||
85 | * @return mixed |
||
86 | */ |
||
87 | public function getListOfScripts($pathToUpgradePackage) |
||
91 | /** |
||
92 | * Get list of sql migration scripts needs to be run for upgrade |
||
93 | * |
||
94 | * @param String $pathToUpgradePackage |
||
95 | * |
||
96 | * @return mixed |
||
97 | */ |
||
98 | public function getListOfSQLScripts($pathToUpgradePackage) |
||
102 | |||
103 | |||
104 | /* |
||
105 | * @param Finder $finder |
||
106 | * @param String $path |
||
107 | * return mixed |
||
108 | */ |
||
109 | private function getDirectoryFileList($finder, $path) |
||
118 | |||
119 | /* |
||
120 | * @param Finder $finder |
||
121 | * @param String $installedBuildPath |
||
122 | * @param String $upgradePackagePath |
||
123 | * return mixed |
||
124 | */ |
||
125 | private function getNewOrChangedFiles($finder, $installedBuildPath, $needstoBeUpgradedPath) |
||
136 | |||
137 | /* |
||
138 | * Extracts zipped upgrade package |
||
139 | * @param String $pathToZipPackage |
||
140 | * |
||
141 | */ |
||
142 | private function extractUpgradePackage($pathToUpgradePackage) |
||
155 | |||
156 | |||
157 | |||
158 | /** |
||
159 | * @return string |
||
160 | */ |
||
161 | protected function getExtractedPackagePath() |
||
165 | |||
166 | /** |
||
167 | * @param string $upgradePackagePath |
||
168 | * @param string version |
||
169 | */ |
||
170 | public function setExtractedPackagePath($version) |
||
174 | |||
175 | |||
176 | /** |
||
177 | * clear packege for unzipped package |
||
178 | */ |
||
179 | private function clearUpgradePackageDirectory($extractedPackagePath) |
||
184 | |||
185 | /** |
||
186 | * Creates directory for extracting zip package |
||
187 | * @return bool |
||
188 | */ |
||
189 | private function initPackageDirectory($extractedPackagePath) |
||
208 | |||
209 | } |
||
210 |
This check marks private properties in classes that are never used. Those properties can be removed.