Property | Type | Description | |
---|---|---|---|
$data | array | Array of uploaded data for this field | |
$entity | Cake\ORM\Entity | Entity instance. | |
$field | string | Name of field | |
$settings | array | Settings for processing a path | |
$table | Table instance. |
Method | Description | |
---|---|---|
__construct ( |
Constructs a writer | |
delete ( array $files ) : array | Deletes a set of files to an output | |
deletePath ( League\Flysystem\FilesystemInterface $filesystem, string $path ) : boolean | Deletes a path from a filesystem | |
getFilesystem ( string $field, array $settings = [] ) : League\Flysystem\FilesystemInterface | Retrieves a configured filesystem for the given field | |
write ( array $files ) : array | Writes a set of files to an output | |
writeFile ( League\Flysystem\FilesystemInterface $filesystem, string $file, string $path ) : boolean | Writes a set of files to an output |
public __construct ( |
||
$table | the instance managing the entity | |
$entity | Cake\ORM\Entity | the entity to construct a path for. |
$data | array | the data being submitted for a save |
$field | string | the field for which data will be saved |
$settings | array | the settings for the current field |
public deletePath ( League\Flysystem\FilesystemInterface $filesystem, string $path ) : boolean | ||
$filesystem | League\Flysystem\FilesystemInterface | a filesystem writer |
$path | string | the path that should be deleted |
return | boolean |
public getFilesystem ( string $field, array $settings = [] ) : League\Flysystem\FilesystemInterface | ||
$field | string | the field for which data will be saved |
$settings | array | the settings for the current field |
return | League\Flysystem\FilesystemInterface |
protected array $data | ||
return | array |
protected Entity,Cake\ORM $entity | ||
return | Cake\ORM\Entity |
protected array $settings | ||
return | array |