1 | <?php |
||
39 | class Storage extends ObjectAbstract implements StorageInterface, PathAwareInterface, ErrorAwareInterface, ExtensionAwareInterface |
||
40 | { |
||
41 | use PathAwareTrait, ExtensionAwareTrait; |
||
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | public function has(/*# string */ $path)/*# : bool */ |
||
59 | |||
60 | /** |
||
61 | * {@inheritDoc} |
||
62 | */ |
||
63 | public function get(/*# string */ $path, /*# bool */ $stream = false) |
||
79 | |||
80 | /** |
||
81 | * {@inheritDoc} |
||
82 | */ |
||
83 | public function put( |
||
101 | |||
102 | /** |
||
103 | * {@inheritDoc} |
||
104 | */ |
||
105 | public function meta(/*# string */ $path)/*# : array */ |
||
112 | |||
113 | /** |
||
114 | * {@inheritDoc} |
||
115 | */ |
||
116 | public function copy( |
||
134 | |||
135 | /** |
||
136 | * {@inheritDoc} |
||
137 | */ |
||
138 | public function move( |
||
153 | |||
154 | /** |
||
155 | * {@inheritDoc} |
||
156 | */ |
||
157 | public function delete(/*# string */ $path)/*# : bool */ |
||
164 | |||
165 | /** |
||
166 | * Copy or rename |
||
167 | * |
||
168 | * @param string $from |
||
169 | * @param string $to |
||
170 | * @param string $action 'copy' or 'rename' |
||
171 | * @return bool |
||
172 | * @access protected |
||
173 | */ |
||
174 | protected function sameFilesystemAction( |
||
184 | |||
185 | /** |
||
186 | * Exists on same filesystem ? |
||
187 | * |
||
188 | * @param string $path1 |
||
189 | * @param string $path2 |
||
190 | * @return bool |
||
191 | * @access protected |
||
192 | */ |
||
193 | protected function isSameFilesystem( |
||
199 | |||
200 | /** |
||
201 | * Copy an array of paths to destination |
||
202 | * |
||
203 | * @param array $paths |
||
204 | * @param string $destination |
||
205 | * @access protected |
||
206 | */ |
||
207 | protected function copyDir(array $paths, /*# string */ $destination) |
||
218 | |||
219 | /** |
||
220 | * Prepend mount point prefix to the array of paths |
||
221 | * |
||
222 | * @param array $paths |
||
223 | * @param string $mountPoint |
||
224 | * @return array |
||
225 | * @access protected |
||
226 | */ |
||
227 | protected function prependMountPoint( |
||
237 | } |
||
238 |