AdiantiFileSaveTrait
File Save Trait
Tags
Table of Contents
Methods
- loadBinaryFile() : mixed
- Save binary file on tmp and return path
- loadBinaryFiles() : mixed
- Save binary files on tmp and return paths
- saveBinaryFile() : mixed
- Save binary file
- saveBinaryFiles() : mixed
- Save binary file
- saveFile() : mixed
- Save file
- saveFiles() : mixed
- Save files
- saveFilesByComma() : mixed
- Save files comma separated
Methods
loadBinaryFile()
Save binary file on tmp and return path
public
loadBinaryFile( $object, $attr_file, $attr_file_name) : mixed
Parameters
loadBinaryFiles()
Save binary files on tmp and return paths
public
loadBinaryFiles( $object, $model_files, $attr_file_name, $file_field, $foreign_key) : mixed
Parameters
saveBinaryFile()
Save binary file
public
saveBinaryFile( $object, $data, $attr_file, $attr_file_name) : mixed
Database and column types supporteds: ORACLE => BLOB MYSQL => LONGBLOB MSSQL => VARBINARY(MAX) POSTGRES => BYTEA
Parameters
saveBinaryFiles()
Save binary file
public
saveBinaryFiles( $object, $data, $attr_file_data, $model_files, $attr_file_name, $file_field, $foreign_key) : mixed
Database and column types supporteds: ORACLE => BLOB MYSQL => LONGBLOB MSSQL => VARBINARY(MAX) POSTGRES => BYTEA
Parameters
saveFile()
Save file
public
saveFile( $object, $data, $input_name, $target_path) : mixed
Parameters
saveFiles()
Save files
public
saveFiles( $object, $data, $input_name, $target_path, $model_files, $file_field, $foreign_key) : mixed
Parameters
saveFilesByComma()
Save files comma separated
public
saveFilesByComma( $object, $data, $input_name, $target_path) : mixed