\MLAFileDownloader

Class MLA (Media Library Assistant) File Downloader provides file streaming to client.

Summary

Methods
Properties
Constants
mla_process_download_file()
$mla_debug
No constants found
No protected methods found
No protected properties found
N/A
_mla_debug_add()
_mla_die()
_mla_error_return()
No private properties found
N/A

Properties

$mla_debug

$mla_debug : boolean

Log debug information if true

Type

boolean

Methods

mla_process_download_file()

mla_process_download_file() : void

Process secure file download

Requires mla_download_file and mla_download_type in $_REQUEST.

_mla_debug_add()

_mla_debug_add(string  $message) 

Log debug information

Parameters

string $message

Error message.

_mla_die()

_mla_die(string  $message, string  $title = '', integer  $response = 500) : void

Abort the operation and exit

Parameters

string $message

Error message.

string $title

Optional. Error title. Default empty.

integer $response

Optional. HTML response code. Default 500.

_mla_error_return()

_mla_error_return(string  $message, string  $line = '') : \array(

Log the message and return error message array

Parameters

string $message

Error message.

string $line

Optional. Line number in the caller.

Returns

\array( —

'error' => message )