1 | <?php |
||
39 | class Storage extends ObjectAbstract implements StorageInterface, ErrorAwareInterface, ExtensionAwareInterface |
||
40 | { |
||
41 | use PathAwareTrait, ErrorAwareTrait, ExtensionAwareTrait; |
||
42 | |||
43 | /** |
||
44 | * @param string $mountPoint |
||
45 | * @param FilesystemInterface $filesystem |
||
46 | * @access public |
||
47 | */ |
||
48 | public function __construct( |
||
54 | |||
55 | /** |
||
56 | * {@inheritDoc} |
||
57 | */ |
||
58 | public function has(/*# string */ $path)/*# : bool */ |
||
71 | |||
72 | /** |
||
73 | * {@inheritDoc} |
||
74 | */ |
||
75 | public function get(/*# string */ $path, /*# bool */ $stream = false) |
||
91 | |||
92 | /** |
||
93 | * {@inheritDoc} |
||
94 | */ |
||
95 | public function put( |
||
113 | |||
114 | /** |
||
115 | * {@inheritDoc} |
||
116 | */ |
||
117 | public function meta(/*# string */ $path)/*# : array */ |
||
124 | |||
125 | /** |
||
126 | * {@inheritDoc} |
||
127 | */ |
||
128 | public function copy( |
||
153 | |||
154 | /** |
||
155 | * {@inheritDoc} |
||
156 | */ |
||
157 | public function move( |
||
172 | |||
173 | /** |
||
174 | * {@inheritDoc} |
||
175 | */ |
||
176 | public function delete(/*# string */ $path)/*# : bool */ |
||
183 | |||
184 | /** |
||
185 | * {@inheritDoc} |
||
186 | */ |
||
187 | public function isDir(/*# string */ $path)/*# : bool */ |
||
191 | |||
192 | /** |
||
193 | * Copy or rename |
||
194 | * |
||
195 | * @param string $from |
||
196 | * @param string $to |
||
197 | * @param string $action 'copy' or 'rename' |
||
198 | * @return bool |
||
199 | * @access protected |
||
200 | */ |
||
201 | protected function sameFilesystemAction( |
||
211 | |||
212 | /** |
||
213 | * Exists on same filesystem ? |
||
214 | * |
||
215 | * @param string $path1 |
||
216 | * @param string $path2 |
||
217 | * @return bool |
||
218 | * @access protected |
||
219 | */ |
||
220 | protected function isSameFilesystem( |
||
226 | |||
227 | /** |
||
228 | * Copy an array of paths to destination |
||
229 | * |
||
230 | * @param array $paths |
||
231 | * @param string $destination |
||
232 | * @access protected |
||
233 | */ |
||
234 | protected function copyDir(array $paths, /*# string */ $destination) |
||
244 | |||
245 | /** |
||
246 | * Prepend mount point prefix to the array of paths |
||
247 | * |
||
248 | * @param array $paths |
||
249 | * @param string $mountPoint |
||
250 | * @return array |
||
251 | * @access protected |
||
252 | */ |
||
253 | protected function prependMountPoint( |
||
263 | } |
||
264 |