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(){ |
||
86 | |||
87 | /** |
||
88 | * Absolute path to core root dir content |
||
89 | * @return array |
||
90 | */ |
||
91 | public function getRootDirItems(){ |
||
99 | |||
100 | public function getDataDir(){ |
||
103 | |||
104 | public function getCheckpointDir(){ |
||
107 | |||
108 | public function getDownloadBaseDir(){ |
||
111 | |||
112 | public function getExtractionBaseDir(){ |
||
115 | |||
116 | /** |
||
117 | * |
||
118 | * @return string |
||
119 | */ |
||
120 | public function getPathToOccFile(){ |
||
123 | |||
124 | /** |
||
125 | * |
||
126 | * @return string |
||
127 | */ |
||
128 | public function getInstalledVersion(){ |
||
134 | |||
135 | /** |
||
136 | * |
||
137 | * @return string |
||
138 | */ |
||
139 | public function getChannelFromVersionsFile(){ |
||
145 | |||
146 | /** |
||
147 | * |
||
148 | * @return string |
||
149 | */ |
||
150 | public function getBuild(){ |
||
156 | |||
157 | public function getPathtoConfigFiles($filePostfix = 'config.php'){ |
||
163 | |||
164 | public function getPathToConfigFile(){ |
||
167 | |||
168 | /** |
||
169 | * |
||
170 | * @return string |
||
171 | */ |
||
172 | public function getPathToVersionFile(){ |
||
175 | |||
176 | } |
||
177 |
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.