1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Jobtech\LaravelChunky\Facades; |
4
|
|
|
|
5
|
|
|
use Illuminate\Support\Facades\Facade; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* @method static int lastIndexFrom(\Jobtech\LaravelChunky\Http\Requests\AddChunkRequest $request) |
9
|
|
|
* @method static bool isLastIndex(\Jobtech\LaravelChunky\Http\Requests\AddChunkRequest $request) |
10
|
|
|
* @method static \Jobtech\LaravelChunky\ChunkySettings settings() |
11
|
|
|
* @method static \Jobtech\LaravelChunky\Contracts\ChunkyManager setChunksFilesystem(string $disk, string $folder) |
12
|
|
|
* @method static \Jobtech\LaravelChunky\Support\ChunksFilesystem chunksFilesystem() |
13
|
|
|
* @method static \Jobtech\LaravelChunky\Contracts\ChunkyManager setMergeFilesystem(string $disk, string $folder) |
14
|
|
|
* @method static \Jobtech\LaravelChunky\Support\MergeFilesystem mergeFilesystem() |
15
|
|
|
* @method static \Jobtech\LaravelChunky\Contracts\MergeHandler mergeHandler() |
16
|
|
|
* @method static string|null chunksDisk() |
17
|
|
|
* @method static string|null mergeDisk() |
18
|
|
|
* @method static string chunksFolder() |
19
|
|
|
* @method static string mergeFolder() |
20
|
|
|
* @method static array chunksOptions() |
21
|
|
|
* @method static array mergeOptions() |
22
|
|
|
* @method static \Illuminate\Support\Collection listChunks(?string $folder = null) |
23
|
|
|
* @method static resource|null readChunk($chunk) |
24
|
|
|
* @method static \Jobtech\LaravelChunky\Chunk addChunk(\Illuminate\Http\UploadedFile $file, int $index, string $folder) |
25
|
|
|
* @method static bool deleteChunks(string $folder) |
26
|
|
|
* @method static bool isValidChunksFolder(string $folder) |
27
|
|
|
* @method static bool checkChunks(string $folder, int $index) |
28
|
|
|
* @method static bool checkChunksIntegrity(string $folder, int $chunk_size, int $total_size) |
29
|
|
|
* @method static \Jobtech\LaravelChunky\Chunk handle(\Jobtech\LaravelChunky\Http\Requests\AddChunkRequest $request, ?string $folder = null) |
30
|
|
|
* @method static string merge(string $chunks_folder, string $merge_path) |
31
|
|
|
*/ |
32
|
|
|
class Chunky extends Facade |
33
|
|
|
{ |
34
|
|
|
protected static function getFacadeAccessor() |
35
|
|
|
{ |
36
|
|
|
return 'chunky'; |
37
|
|
|
} |
38
|
|
|
} |
39
|
|
|
|