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
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']
$filename
protected
string
$filename
$filepath
protected
string
$filepath
$filetype
protected
string
$filetype
__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
—
public
headers() : void
Return values
void
—
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
—