Logidav Docs

ProductOrphelinService
in package

Table of Contents

Properties

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

Methods

__construct()  : mixed
ProductOrphelinService constructor.
add()  : ProductOrphelin
export()  : StreamedResponse
Exporting sales
getRepo()  : ProductOrphelinRepository
remove()  : mixed
save()  : ProductOrphelin
Save a ProductOrphelin
exportCsv()  : mixed
Exporting as csv
exportXls()  : mixed
Exporting as Xls

Properties

$header

private mixed $header = ['sku' => 'Sku', 'emplacement' => 'Emplacement', 'qty' => 'Qté']

Methods

__construct()

ProductOrphelinService constructor.

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

export()

Exporting sales

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

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

        
On this page

Search results