Logidav Docs

FilesImportService
in package

Table of Contents

Properties

$container  : ContainerInterface
$entityManager  : EntityManagerInterface
$header  : mixed

Methods

__construct()  : mixed
FilesImportService constructor.
export()  : StreamedResponse
Exporting Files
getRepo()  : FilesImportRepository
save()  : FilesImport
Save a FilesImport
saveErrors()  : FilesImport
uploadFile()  : FilesImport
exportCsv()  : mixed
Exporting as csv
exportXls()  : mixed
Exporting as Xls

Properties

$header

private mixed $header = ['fileName' => 'Nom du fichier', 'status' => 'Status', 'errorCount' => 'Erreurs', 'createdAt' => 'Importé le']

Methods

__construct()

FilesImportService constructor.

public __construct(ContainerInterface $container, EntityManagerInterface $entityManager) : mixed
Parameters
$container : ContainerInterface
$entityManager : EntityManagerInterface

export()

Exporting Files

public export(mixed $title, mixed $data, mixed $columns, mixed $format[, array<string|int, mixed> $customHeader = [] ]) : StreamedResponse
Parameters
$title : mixed
$data : mixed
$columns : mixed
$format : mixed
$customHeader : array<string|int, mixed> = []
Return values
StreamedResponse

uploadFile()

public uploadFile(mixed $file, mixed $uploadDir, mixed $folderToken, null $folderName, mixed $path[, null $className = null ][, mixed $params = null ]) : FilesImport
Parameters
$file : mixed
$uploadDir : mixed
$folderToken : mixed
$folderName : null
$path : mixed
$className : null = null
$params : mixed = null
Tags
throws
Exception
Return values
FilesImport

exportCsv()

Exporting as csv

private exportCsv(mixed $data, mixed $columns, mixed $title) : mixed
Parameters
$data : mixed
$columns : mixed
$title : mixed

exportXls()

Exporting as Xls

private exportXls(mixed $data, mixed $columns, mixed $title) : mixed
Parameters
$data : mixed
$columns : mixed
$title : mixed
Tags
throws
PHPExcel_Exception

        
On this page

Search results