1 | <?php |
||
24 | class Locator { |
||
25 | |||
26 | /** |
||
27 | * absolute path to ownCloud root |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $owncloudRootPath; |
||
31 | |||
32 | /** |
||
33 | * absolute path to updater root |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $updaterRootPath; |
||
37 | |||
38 | /** |
||
39 | * |
||
40 | * @param string $baseDir |
||
41 | */ |
||
42 | public function __construct($baseDir){ |
||
46 | |||
47 | public function getOwncloudRootPath(){ |
||
50 | |||
51 | /** |
||
52 | * expected items in the core |
||
53 | * @return array |
||
54 | */ |
||
55 | public function getRootDirContent(){ |
||
85 | |||
86 | public function getUpdaterContent(){ |
||
104 | |||
105 | /** |
||
106 | * Absolute path to core root dir content |
||
107 | * @return array |
||
108 | */ |
||
109 | public function getRootDirItems(){ |
||
117 | |||
118 | public function getDataDir(){ |
||
121 | |||
122 | public function getCheckpointDir(){ |
||
125 | |||
126 | public function getDownloadBaseDir(){ |
||
129 | |||
130 | public function getExtractionBaseDir(){ |
||
133 | |||
134 | /** |
||
135 | * |
||
136 | * @return string |
||
137 | */ |
||
138 | public function getPathToOccFile(){ |
||
141 | |||
142 | /** |
||
143 | * |
||
144 | * @return string |
||
145 | */ |
||
146 | public function getInstalledVersion(){ |
||
152 | |||
153 | /** |
||
154 | * |
||
155 | * @return string |
||
156 | */ |
||
157 | public function getChannelFromVersionsFile(){ |
||
163 | |||
164 | /** |
||
165 | * |
||
166 | * @return string |
||
167 | */ |
||
168 | public function getBuild(){ |
||
174 | |||
175 | public function getPathtoConfigFiles($filePostfix = 'config.php'){ |
||
181 | |||
182 | public function getPathToConfigFile(){ |
||
185 | |||
186 | /** |
||
187 | * |
||
188 | * @return string |
||
189 | */ |
||
190 | public function getPathToVersionFile(){ |
||
193 | |||
194 | } |
||
195 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.