2023-03-16 13:00:05 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Modules\Media\FileManagers;
|
|
|
|
|
|
|
|
use CodeIgniter\Files\File;
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
public function getFileInput(string $key): string;
|
|
|
|
|
|
|
|
public function deletePodcastImageSizes(string $podcastHandle): bool;
|
|
|
|
|
|
|
|
public function deletePersonImagesSizes(): bool;
|
2023-03-17 14:51:43 +00:00
|
|
|
|
|
|
|
public function isHealthy(): bool;
|
2023-03-16 13:00:05 +00:00
|
|
|
}
|