mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-10-03 15:06:51 +02:00
a76724a8cf
refs #321
34 lines
817 B
PHP
34 lines
817 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Modules\Media\FileManagers;
|
|
|
|
use CodeIgniter\Files\File;
|
|
use CodeIgniter\HTTP\Response;
|
|
|
|
interface FileManagerInterface
|
|
{
|
|
public function save(File $file, string $key): string | false;
|
|
|
|
public function delete(string $key): bool;
|
|
|
|
public function getUrl(string $key): string;
|
|
|
|
public function rename(string $oldKey, string $newKey): bool;
|
|
|
|
public function getFileContents(string $key): string|false;
|
|
|
|
public function getFileInput(string $key): string;
|
|
|
|
public function deletePodcastImageSizes(string $podcastHandle): bool;
|
|
|
|
public function deletePersonImagesSizes(): bool;
|
|
|
|
public function deleteAll(string $prefix, string $pattern = '*'): bool;
|
|
|
|
public function isHealthy(): bool;
|
|
|
|
public function serve(string $key): Response;
|
|
}
|