API Documentação da API
Inscrições abertas para nosso Webinar anual Adianti Framework 2024!
Clique aqui para saber mais
Pacote Dominando o Adianti 7
Curso + Livro + Apps exemplo
Curso completo em Video Aulas (114 aulas).
Livro completo em PDF (463 páginas).
Códigos-fontes de Apps de exemplo.
API
API do Framework
Documentation

Documentation

AdiantiFileSaveTrait

File Save Trait

Tags
version
7.6
author

Nataniel Rabaioli

author

Pablo Dall'Oglio

copyright

Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)

license

https://adiantiframework.com.br/license

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
$object :

Active Record

$attr_file :

Input field name

$attr_file_name :

Active field name for name file

loadBinaryFiles()

Save binary files on tmp and return paths

public loadBinaryFiles( $object,  $model_files,  $attr_file_name,  $file_field,  $foreign_key) : mixed
Parameters
$object :

Active Record

$model_files :

Files Active Record

$attr_file_name :

Active field name for name file

$file_field :

File field in model_files

$foreign_key :

Foreign key to $object

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
$object :

Active Record

$data :

Form data

$attr_file :

Input field name

$attr_file_name :

Active field name for name file

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
$object :

Active Record

$data :

Form data

$attr_file_data :

Input field name

$model_files :

Files Active Record

$attr_file_name :

Active field name for name file

$file_field :

File field in model_files

$foreign_key :

Foreign key to $object

saveFile()

Save file

public saveFile( $object,  $data,  $input_name,  $target_path) : mixed
Parameters
$object :

Active Record

$data :

Form data

$input_name :

Input field name

$target_path :

Target file path

saveFiles()

Save files

public saveFiles( $object,  $data,  $input_name,  $target_path,  $model_files,  $file_field,  $foreign_key) : mixed
Parameters
$object :

Active Record

$data :

Form data

$input_name :

Input field name

$target_path :

Target file path

$model_files :

Files Active Record

$file_field :

File field in model_files

$foreign_key :

Foreign key to $object

saveFilesByComma()

Save files comma separated

public saveFilesByComma( $object,  $data,  $input_name,  $target_path) : mixed
Parameters
$object :

Active Record

$data :

Form data

$input_name :

Input field name

$target_path :

Target file path


        
On this page

Search results