PHP Interface Josegonzalez\Upload\File\Writer\WriterInterface

Datei anzeigen Open project: josegonzalez/cakephp-upload

Public Methods

Method Description
__construct ( Table $table, Cake\ORM\Entity $entity, array $data, string $field, array $settings ) Constructor.
delete ( array $files ) : array Deletes a set of files to an output
write ( array $files ) : array Writes a set of files to an output

Method Details

__construct() public method

Constructor.
public __construct ( Table $table, Cake\ORM\Entity $entity, array $data, string $field, array $settings )
$table Cake\ORM\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

delete() public method

Deletes a set of files to an output
public delete ( array $files ) : array
$files array the files being written out
return array array of results

write() public method

Writes a set of files to an output
public write ( array $files ) : array
$files array the files being written out
return array array of results