Index: trunk/extensions/Deployment/includes/filesystems/FtpFilesystem.php |
— | — | @@ -109,63 +109,63 @@ |
110 | 110 | /** |
111 | 111 | * @see Filesystem::changeDir |
112 | 112 | */ |
113 | | - public function changeDir($dir) { |
114 | | - |
| 113 | + public function changeDir( $dir ) { |
| 114 | + return @ftp_chdir( $this->connection, $dir ); |
115 | 115 | } |
116 | 116 | |
117 | 117 | /** |
118 | 118 | * @see Filesystem::changeFileGroup |
119 | 119 | */ |
120 | | - public function changeFileGroup($file, $group, $recursive = false) { |
| 120 | + public function changeFileGroup( $file, $group, $recursive = false ) { |
121 | 121 | |
122 | 122 | } |
123 | 123 | |
124 | 124 | /** |
125 | 125 | * @see Filesystem::chmod |
126 | 126 | */ |
127 | | - public function chmod($file, $mode = false, $recursive = false) { |
| 127 | + public function chmod( $file, $mode = false, $recursive = false ) { |
128 | 128 | |
129 | 129 | } |
130 | 130 | |
131 | 131 | /** |
132 | 132 | * @see Filesystem::chown |
133 | 133 | */ |
134 | | - public function chown($file, $owner, $recursive = false) { |
| 134 | + public function chown( $file, $owner, $recursive = false ) { |
135 | 135 | |
136 | 136 | } |
137 | 137 | |
138 | 138 | /** |
139 | 139 | * @see Filesystem::delete |
140 | 140 | */ |
141 | | - public function delete($path, $recursive = false) { |
| 141 | + public function delete( $path, $recursive = false ) { |
142 | 142 | |
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
146 | 146 | * @see Filesystem::doCopy |
147 | 147 | */ |
148 | | - protected function doCopy($from, $to) { |
| 148 | + protected function doCopy( $from, $to ) { |
149 | 149 | |
150 | 150 | } |
151 | 151 | |
152 | 152 | /** |
153 | 153 | * @see Filesystem::doMove |
154 | 154 | */ |
155 | | - protected function doMove($from, $to) { |
| 155 | + protected function doMove( $from, $to ) { |
156 | 156 | |
157 | 157 | } |
158 | 158 | |
159 | 159 | /** |
160 | 160 | * @see Filesystem::exists |
161 | 161 | */ |
162 | | - public function exists($file) { |
| 162 | + public function exists( $file ) { |
163 | 163 | |
164 | 164 | } |
165 | 165 | |
166 | 166 | /** |
167 | 167 | * @see Filesystem::getChmod |
168 | 168 | */ |
169 | | - public function getChmod($file) { |
| 169 | + public function getChmod( $file ) { |
170 | 170 | |
171 | 171 | } |
172 | 172 | |
— | — | @@ -179,7 +179,7 @@ |
180 | 180 | /** |
181 | 181 | * @see Filesystem::getCreationTime |
182 | 182 | */ |
183 | | - public function getCreationTime($file) { |
| 183 | + public function getCreationTime( $file ) { |
184 | 184 | |
185 | 185 | } |
186 | 186 | |
— | — | @@ -193,85 +193,85 @@ |
194 | 194 | /** |
195 | 195 | * @see Filesystem::getGroup |
196 | 196 | */ |
197 | | - public function getGroup($file) { |
| 197 | + public function getGroup( $file ) { |
198 | 198 | |
199 | 199 | } |
200 | 200 | |
201 | 201 | /** |
202 | 202 | * @see Filesystem::getModificationTime |
203 | 203 | */ |
204 | | - public function getModificationTime($file) { |
| 204 | + public function getModificationTime( $file ) { |
205 | 205 | |
206 | 206 | } |
207 | 207 | |
208 | 208 | /** |
209 | 209 | * @see Filesystem::getOwner |
210 | 210 | */ |
211 | | - public function getOwner($file) { |
| 211 | + public function getOwner( $file ) { |
212 | 212 | |
213 | 213 | } |
214 | 214 | |
215 | 215 | /** |
216 | 216 | * @see Filesystem::getSize |
217 | 217 | */ |
218 | | - public function getSize($file) { |
| 218 | + public function getSize( $file ) { |
219 | 219 | |
220 | 220 | } |
221 | 221 | |
222 | 222 | /** |
223 | 223 | * @see Filesystem::isDir |
224 | 224 | */ |
225 | | - public function isDir($path) { |
| 225 | + public function isDir( $path ) { |
226 | 226 | |
227 | 227 | } |
228 | 228 | |
229 | 229 | /** |
230 | 230 | * @see Filesystem::isFile |
231 | 231 | */ |
232 | | - public function isFile($path) { |
| 232 | + public function isFile( $path ) { |
233 | 233 | |
234 | 234 | } |
235 | 235 | |
236 | 236 | /** |
237 | 237 | * @see Filesystem::isReadable |
238 | 238 | */ |
239 | | - public function isReadable($file) { |
| 239 | + public function isReadable( $file ) { |
240 | 240 | |
241 | 241 | } |
242 | 242 | |
243 | 243 | /** |
244 | 244 | * @see Filesystem::isWritable |
245 | 245 | */ |
246 | | - public function isWritable($file) { |
| 246 | + public function isWritable( $file ) { |
247 | 247 | |
248 | 248 | } |
249 | 249 | |
250 | 250 | /** |
251 | 251 | * @see Filesystem::listDir |
252 | 252 | */ |
253 | | - public function listDir($path, $includeHidden = true, $recursive = false) { |
| 253 | + public function listDir( $path, $includeHidden = true, $recursive = false ) { |
254 | 254 | |
255 | 255 | } |
256 | 256 | |
257 | 257 | /** |
258 | 258 | * @see Filesystem::makeDir |
259 | 259 | */ |
260 | | - public function makeDir($path, $chmod = false, $chown = false, $chgrp = false) { |
| 260 | + public function makeDir( $path, $chmod = false, $chown = false, $chgrp = false ) { |
261 | 261 | |
262 | 262 | } |
263 | 263 | |
264 | 264 | /** |
265 | 265 | * @see Filesystem::touch |
266 | 266 | */ |
267 | | - public function touch($file, $time = 0, $atime = 0) { |
| 267 | + public function touch( $file, $time = 0, $atime = 0 ) { |
268 | 268 | |
269 | 269 | } |
270 | 270 | |
271 | 271 | /** |
272 | 272 | * @see Filesystem::writeToFile |
273 | 273 | */ |
274 | | - public function writeToFile($file, $contents) { |
| 274 | + public function writeToFile( $file, $contents ) { |
275 | 275 | |
276 | | - } |
277 | | - |
| 276 | + } |
| 277 | + |
278 | 278 | } |
\ No newline at end of file |
Index: trunk/extensions/Deployment/includes/filesystems/DirectFilesystem.php |
— | — | @@ -34,63 +34,63 @@ |
35 | 35 | /** |
36 | 36 | * @see Filesystem::changeDir |
37 | 37 | */ |
38 | | - public function changeDir($dir) { |
39 | | - |
| 38 | + public function changeDir( $dir ) { |
| 39 | + return @chdir( $dir ); |
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | 43 | * @see Filesystem::changeFileGroup |
44 | 44 | */ |
45 | | - public function changeFileGroup($file, $group, $recursive = false) { |
| 45 | + public function changeFileGroup( $file, $group, $recursive = false ) { |
46 | 46 | |
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
50 | 50 | * @see Filesystem::chmod |
51 | 51 | */ |
52 | | - public function chmod($file, $mode = false, $recursive = false) { |
| 52 | + public function chmod( $file, $mode = false, $recursive = false ) { |
53 | 53 | |
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
57 | 57 | * @see Filesystem::chown |
58 | 58 | */ |
59 | | - public function chown($file, $owner, $recursive = false) { |
| 59 | + public function chown( $file, $owner, $recursive = false ) { |
60 | 60 | |
61 | 61 | } |
62 | 62 | |
63 | 63 | /** |
64 | 64 | * @see Filesystem::delete |
65 | 65 | */ |
66 | | - public function delete($path, $recursive = false) { |
| 66 | + public function delete( $path, $recursive = false ) { |
67 | 67 | |
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
71 | 71 | * @see Filesystem::doCopy |
72 | 72 | */ |
73 | | - protected function doCopy($from, $to) { |
| 73 | + protected function doCopy( $from, $to ) { |
74 | 74 | |
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |
78 | 78 | * @see Filesystem::doMove |
79 | 79 | */ |
80 | | - protected function doMove($from, $to) { |
| 80 | + protected function doMove( $from, $to ) { |
81 | 81 | |
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
85 | 85 | * @see Filesystem::exists |
86 | 86 | */ |
87 | | - public function exists($file) { |
| 87 | + public function exists( $file ) { |
88 | 88 | |
89 | 89 | } |
90 | 90 | |
91 | 91 | /** |
92 | 92 | * @see Filesystem::getChmod |
93 | 93 | */ |
94 | | - public function getChmod($file) { |
| 94 | + public function getChmod( $file ) { |
95 | 95 | |
96 | 96 | } |
97 | 97 | |
— | — | @@ -104,7 +104,7 @@ |
105 | 105 | /** |
106 | 106 | * @see Filesystem::getCreationTime |
107 | 107 | */ |
108 | | - public function getCreationTime($file) { |
| 108 | + public function getCreationTime( $file ) { |
109 | 109 | |
110 | 110 | } |
111 | 111 | |
— | — | @@ -118,84 +118,84 @@ |
119 | 119 | /** |
120 | 120 | * @see Filesystem::getGroup |
121 | 121 | */ |
122 | | - public function getGroup($file) { |
| 122 | + public function getGroup( $file ) { |
123 | 123 | |
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
127 | 127 | * @see Filesystem::getModificationTime |
128 | 128 | */ |
129 | | - public function getModificationTime($file) { |
| 129 | + public function getModificationTime( $file ) { |
130 | 130 | |
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
134 | 134 | * @see Filesystem::getOwner |
135 | 135 | */ |
136 | | - public function getOwner($file) { |
| 136 | + public function getOwner( $file ) { |
137 | 137 | |
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |
141 | 141 | * @see Filesystem::getSize |
142 | 142 | */ |
143 | | - public function getSize($file) { |
| 143 | + public function getSize( $file ) { |
144 | 144 | |
145 | 145 | } |
146 | 146 | |
147 | 147 | /** |
148 | 148 | * @see Filesystem::isDir |
149 | 149 | */ |
150 | | - public function isDir($path) { |
| 150 | + public function isDir( $path ) { |
151 | 151 | |
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |
155 | 155 | * @see Filesystem::isFile |
156 | 156 | */ |
157 | | - public function isFile($path) { |
| 157 | + public function isFile( $path ) { |
158 | 158 | |
159 | 159 | } |
160 | 160 | |
161 | 161 | /** |
162 | 162 | * @see Filesystem::isReadable |
163 | 163 | */ |
164 | | - public function isReadable($file) { |
| 164 | + public function isReadable( $file ) { |
165 | 165 | |
166 | 166 | } |
167 | 167 | |
168 | 168 | /** |
169 | 169 | * @see Filesystem::isWritable |
170 | 170 | */ |
171 | | - public function isWritable($file) { |
| 171 | + public function isWritable( $file ) { |
172 | 172 | |
173 | 173 | } |
174 | 174 | |
175 | 175 | /** |
176 | 176 | * @see Filesystem::listDir |
177 | 177 | */ |
178 | | - public function listDir($path, $includeHidden = true, $recursive = false) { |
| 178 | + public function listDir( $path, $includeHidden = true, $recursive = false ) { |
179 | 179 | |
180 | 180 | } |
181 | 181 | |
182 | 182 | /** |
183 | 183 | * @see Filesystem::makeDir |
184 | 184 | */ |
185 | | - public function makeDir($path, $chmod = false, $chown = false, $chgrp = false) { |
| 185 | + public function makeDir( $path, $chmod = false, $chown = false, $chgrp = false ) { |
186 | 186 | |
187 | 187 | } |
188 | 188 | |
189 | 189 | /** |
190 | 190 | * @see Filesystem::touch |
191 | 191 | */ |
192 | | - public function touch($file, $time = 0, $atime = 0) { |
| 192 | + public function touch( $file, $time = 0, $atime = 0 ) { |
193 | 193 | |
194 | 194 | } |
195 | 195 | |
196 | 196 | /** |
197 | 197 | * @see Filesystem::writeToFile |
198 | 198 | */ |
199 | | - public function writeToFile($file, $contents) { |
| 199 | + public function writeToFile( $file, $contents ) { |
200 | 200 | |
201 | 201 | } |
202 | 202 | |