Documentation

Downloader

Table of Contents

CONTENT_TYPES  = ['xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xls' => 'application/vnd.ms-excel', 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', 'csv' => 'text/csv', 'html' => 'text/html', 'pdf' => 'application/pdf']
$filename  : string
$filepath  : string
$filetype  : string
__construct()  : mixed
download()  : void
headers()  : void
cacheHeaders()  : void
contentDisposition()  : void
contentType()  : void
fileSize()  : void

Constants

CONTENT_TYPES

protected mixed CONTENT_TYPES = ['xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xls' => 'application/vnd.ms-excel', 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', 'csv' => 'text/csv', 'html' => 'text/html', 'pdf' => 'application/pdf']

Properties

Methods

__construct()

public __construct(string $folder, string $filename[, string|null $filetype = null ]) : mixed
Parameters
$folder : string
$filename : string
$filetype : string|null = null
Return values
mixed

download()

public download() : void
Return values
void

headers()

public headers() : void
Return values
void

cacheHeaders()

protected cacheHeaders() : void
Return values
void

contentDisposition()

protected contentDisposition() : void
Return values
void

contentType()

protected contentType() : void
Return values
void

fileSize()

protected fileSize() : void
Return values
void

Search results