@@ 297-302 (lines=6) @@ | ||
294 | return $this->writeWithCallback($callback, $filename, $hash, $variant, $config); |
|
295 | } |
|
296 | ||
297 | public function delete($filename, $hash) { |
|
298 | $fileID = $this->getFileID($filename, $hash); |
|
299 | $protected = $this->deleteFromFilesystem($fileID, $this->getProtectedFilesystem()); |
|
300 | $public = $this->deleteFromFilesystem($fileID, $this->getPublicFilesystem()); |
|
301 | return $protected || $public; |
|
302 | } |
|
303 | ||
304 | /** |
|
305 | * Delete the given file (and any variants) in the given {@see Filesystem} |
|
@@ 362-367 (lines=6) @@ | ||
359 | } |
|
360 | } |
|
361 | ||
362 | public function publish($filename, $hash) { |
|
363 | $fileID = $this->getFileID($filename, $hash); |
|
364 | $protected = $this->getProtectedFilesystem(); |
|
365 | $public = $this->getPublicFilesystem(); |
|
366 | $this->moveBetweenFilesystems($fileID, $protected, $public); |
|
367 | } |
|
368 | ||
369 | public function protect($filename, $hash) { |
|
370 | $fileID = $this->getFileID($filename, $hash); |
|
@@ 369-374 (lines=6) @@ | ||
366 | $this->moveBetweenFilesystems($fileID, $protected, $public); |
|
367 | } |
|
368 | ||
369 | public function protect($filename, $hash) { |
|
370 | $fileID = $this->getFileID($filename, $hash); |
|
371 | $public = $this->getPublicFilesystem(); |
|
372 | $protected = $this->getProtectedFilesystem(); |
|
373 | $this->moveBetweenFilesystems($fileID, $public, $protected); |
|
374 | } |
|
375 | ||
376 | /** |
|
377 | * Move a file (and its associative variants) between filesystems |