Documentation

ExportXlsxComponent
in package

Table of Contents

Properties

$extension  : mixed
$filename  : mixed
$spreadsheet  : mixed
$col_defs  : mixed
$comments  : mixed
$data  : mixed
$highlighted  : mixed

Methods

__construct()  : mixed
build()  : mixed
download()  : mixed
getContent()  : mixed
getExtension()  : mixed
Get the value of extension
getFilename()  : mixed
save()  : $this
saveToFileResource()  : resource
saveWithExtension()  : $this
setExtension()  : self
Set the value of extension
setFilename()  : $this
formatHeader()  : mixed

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $multi_array[, array<string|int, mixed> $col_defs = null ][, mixed $comments = [] ][, mixed $highlighted = [] ]) : mixed
Parameters
$multi_array : array<string|int, mixed>
$col_defs : array<string|int, mixed> = null
$comments : mixed = []
$highlighted : mixed = []

build()

public build([mixed $headerOnly = false ]) : mixed
Parameters
$headerOnly : mixed = false

saveToFileResource()

public saveToFileResource([resource|null &$file = null ]) : resource
Parameters
$file : resource|null = null

If used without a parameter, a temporary file will be created

Tags
throws
Exception
throws
InvalidArgumentException
Return values
resource

saveWithExtension()

public saveWithExtension() : $this
Tags
throws
Exception
Return values
$this

setExtension()

Set the value of extension

public setExtension(mixed $extension) : self
Parameters
$extension : mixed
Return values
self

setFilename()

public setFilename(mixed $filename) : $this
Parameters
$filename : mixed
Return values
$this

        
On this page

Search results