AirLay backend

Report
in package

Table of Contents

AVAILABLE_FORMAT  = ['xls']
DEFAULT_STYLE  = ['font' => ['name' => 'Arial', 'bold' => false, 'size' => 14], 'alignment' => ['horizontal' => \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_LEFT, 'vertical' => \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_TOP, 'wrapText' => true], 'borders' => ['top' => ['borderStyle' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_THIN]]]
HEADER_STYLE  = ['font' => ['bold' => true], 'alignment' => ['horizontal' => \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER, 'vertical' => \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER, 'wrapText' => true]]
$errors  : array<string|int, mixed>
$translator  : ErrorTranslator
__construct()  : mixed
generate()  : void
getErrors()  : array<string|int, mixed>
getFile()  : Spreadsheet
getFileZeroFormat()  : Spreadsheet
sendFile()  : mixed
calculateHeight()  : mixed
getErrorDescription()  : string

Constants

AVAILABLE_FORMAT

private mixed AVAILABLE_FORMAT = ['xls']

DEFAULT_STYLE

private mixed DEFAULT_STYLE = ['font' => ['name' => 'Arial', 'bold' => false, 'size' => 14], 'alignment' => ['horizontal' => \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_LEFT, 'vertical' => \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_TOP, 'wrapText' => true], 'borders' => ['top' => ['borderStyle' => \PhpOffice\PhpSpreadsheet\Style\Border::BORDER_THIN]]]

HEADER_STYLE

private mixed HEADER_STYLE = ['font' => ['bold' => true], 'alignment' => ['horizontal' => \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER, 'vertical' => \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER, 'wrapText' => true]]

Properties

$errors

private array<string|int, mixed> $errors = []

Methods

generate()

public generate(ObjectId $datasetId, int $limit, string $type) : void
Parameters
$datasetId : ObjectId
$limit : int
$type : string
Return values
void

getErrors()

public getErrors() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFile()

public getFile([string $format = 'xls' ]) : Spreadsheet
Parameters
$format : string = 'xls'
Return values
Spreadsheet

getFileZeroFormat()

public getFileZeroFormat([string $format = 'xls' ]) : Spreadsheet
Parameters
$format : string = 'xls'
Return values
Spreadsheet

sendFile()

public sendFile(mixed $file) : mixed
Parameters
$file : mixed
Return values
mixed

calculateHeight()

private calculateHeight(Cell $cell) : mixed
Parameters
$cell : Cell
Return values
mixed

getErrorDescription()

private getErrorDescription(array<string|int, ErrorInterface$errors) : string
Parameters
$errors : array<string|int, ErrorInterface>
Return values
string

Search results