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 | /** |
||
87 | * Absolute path to core root dir content |
||
88 | * @return array |
||
89 | */ |
||
90 | public function getRootDirItems(){ |
||
98 | |||
99 | public function getDataDir(){ |
||
102 | |||
103 | public function getCheckpointDir(){ |
||
106 | |||
107 | public function getDownloadBaseDir(){ |
||
110 | |||
111 | public function getExtractionBaseDir(){ |
||
114 | |||
115 | /** |
||
116 | * |
||
117 | * @return string |
||
118 | */ |
||
119 | public function getPathToOccFile(){ |
||
122 | |||
123 | /** |
||
124 | * |
||
125 | * @return string |
||
126 | */ |
||
127 | public function getInstalledVersion(){ |
||
133 | |||
134 | /** |
||
135 | * |
||
136 | * @return string |
||
137 | */ |
||
138 | public function getBuild(){ |
||
144 | |||
145 | public function getPathtoConfigFiles($filePostfix = 'config.php'){ |
||
151 | |||
152 | /** |
||
153 | * |
||
154 | * @return string |
||
155 | */ |
||
156 | public function getPathToVersionFile(){ |
||
159 | |||
160 | } |
||
161 |
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.