1 | <?php |
||
7 | class Manager |
||
8 | { |
||
9 | /** |
||
10 | * @var ProviderChain |
||
11 | */ |
||
12 | private $provider; |
||
13 | |||
14 | /** |
||
15 | * Manager constructor. |
||
16 | * |
||
17 | * @param ProviderChain $provider |
||
18 | */ |
||
19 | public function __construct(ProviderChain $provider) |
||
23 | |||
24 | /** |
||
25 | * Gets all available SugarCRM versions (sorted ASC). |
||
26 | * |
||
27 | * @param $flav |
||
28 | * |
||
29 | * @return mixed |
||
30 | */ |
||
31 | public function getVersions($flav) |
||
40 | |||
41 | /** |
||
42 | * Gets the latest available SugarCRM version with given flav and base version. |
||
43 | * |
||
44 | * Examples: 7.6.1 -> 7.6.1.0, 7.7 -> 7.7.1, 7.8 -> 7.8.0.0 |
||
45 | * |
||
46 | * @param $flav |
||
47 | * @param null $baseVersion |
||
48 | * |
||
49 | * @return mixed |
||
50 | */ |
||
51 | public function getLatestVersion($flav, $baseVersion = null) |
||
84 | |||
85 | /** |
||
86 | * Gets release notes for all versions from given range. |
||
87 | * |
||
88 | * @param Context $context |
||
89 | * |
||
90 | * @return mixed |
||
91 | */ |
||
92 | public function getReleaseNotes(Context $context) |
||
98 | |||
99 | /** |
||
100 | * Gets all required information to perform health check. |
||
101 | * |
||
102 | * @param $version |
||
103 | * |
||
104 | * @return mixed |
||
105 | */ |
||
106 | public function getHealthCheckInfo($version) |
||
110 | |||
111 | /** |
||
112 | * Gets all required information to perform upgrade. |
||
113 | * |
||
114 | * @param $version |
||
115 | * |
||
116 | * @return mixed |
||
117 | */ |
||
118 | public function getUpgraderInfo($version) |
||
122 | |||
123 | /** |
||
124 | * Gets all available versions from given range ($from < version <= $to). |
||
125 | * |
||
126 | * @param Context $context |
||
127 | * |
||
128 | * @return array |
||
129 | */ |
||
130 | private function getVersionRange(Context $context) |
||
145 | } |
||
146 |