Logidav Docs

ProductSameSkuService extends TransactionalService
in package

Class ProductSameSkuService

Table of Contents

Properties

$container  : mixed
$em  : EntityManager
$productSameSkuRepository  : mixed
$header  : mixed

Methods

addRepository()  : void
Add a repository to this service
addService()  : void
Add a service to this service
export()  : StreamedResponse
Exporting sales
getEntityManager()  : EntityManager
Getter of the Entity Manager
getRepo()  : mixed
Get product photo repo
remove()  : mixed
remove ProductSameSku
save()  : ProductSameSku
Save a ProductSameSku
setEntityManager()  : mixed
Setter of the Entity Manager
exportCsv()  : mixed
Exporting as csv
exportXls()  : mixed
Exporting as Xls

Properties

$header

private mixed $header = ['productsId' => 'productsId', 'sku' => 'Sku', 'name' => 'Nom']

Methods

addRepository()

Add a repository to this service

public addRepository(int $key, string $class) : void
Parameters
$key : int

Key

$class : string

Class

addService()

Add a service to this service

public addService(int $key, mixed $service) : void
Parameters
$key : int

Key

$service : mixed

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

getEntityManager()

Getter of the Entity Manager

public getEntityManager() : EntityManager
Return values
EntityManager

setEntityManager()

Setter of the Entity Manager

public setEntityManager(EntityManager $em) : mixed
Parameters
$em : EntityManager

the Entity Manager

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