AirLay backend

DownloadController extends ApiController
in package

Class ApiBaseController.

Table of Contents

$config  : AirlayConfig
$config  : AirlayConfig
$request  : Request
$user  : UserEntity
$status  : StatusPage|null
$tokenHandler  : TokenHandler|null
__destruct()  : mixed
afterExecuteRoute()  : mixed
beforeExecuteRoute()  : mixed
clearAction()  : string
Delete all processed download log request([ 'method' => 'POST', 'url' => '/api/v4/download/clear' ]) response([ 'status' => 'OK', 'message' => DownloadLogs[] 'code' => 0 ])
deleteAction()  : bool|string
Delete download log request([ 'method' => 'POST', 'url' => '/api/v4/download/delete', 'params' => [ [ 'name' => 'id', 'type' => 'objectId', 'required' => true ] ] ]) response([ 'status' => 'OK', 'message' => DownloadLogs[] 'code' => 0 ])
getAction()  : bool|string
Get user download logs request([ 'method' => 'GET', 'url' => '/api/v4/download/get' ]) response([ 'status' => 'OK', 'message' => DownloadedFiles[] 'code' => 0 ])
getFileAction()  : void
Get download file request([ 'method' => 'GET', 'url' => '/api/v4/download/getFile', 'params' => [ [ 'name' => 'id', 'type' => 'objectId', 'required' => true ] ] ]) response(file)
indexAction()  : mixed
initialize()  : void
attachTmpFile()  : Response
firesAnRelationUpdateEvents()  : void
getId()  : mixed
getNormalizedUserId()  : int|ObjectId
getTranslator()  : NativeArray
getUserInfo()  : UserEntity
secureData()  : mixed
sendEmail()  : mixed

Properties

Methods

afterExecuteRoute()

public afterExecuteRoute(Dispatcher $dispatcher) : mixed
Parameters
$dispatcher : Dispatcher
Return values
mixed

beforeExecuteRoute()

public beforeExecuteRoute(Dispatcher $dispatcher) : mixed
Parameters
$dispatcher : Dispatcher
Return values
mixed

clearAction()

Delete all processed download log request([ 'method' => 'POST', 'url' => '/api/v4/download/clear' ]) response([ 'status' => 'OK', 'message' => DownloadLogs[] 'code' => 0 ])

public clearAction() : string
Return values
string

deleteAction()

Delete download log request([ 'method' => 'POST', 'url' => '/api/v4/download/delete', 'params' => [ [ 'name' => 'id', 'type' => 'objectId', 'required' => true ] ] ]) response([ 'status' => 'OK', 'message' => DownloadLogs[] 'code' => 0 ])

public deleteAction() : bool|string
Tags
throws
AirlayException
Return values
bool|string

getAction()

Get user download logs request([ 'method' => 'GET', 'url' => '/api/v4/download/get' ]) response([ 'status' => 'OK', 'message' => DownloadedFiles[] 'code' => 0 ])

public getAction() : bool|string
Return values
bool|string

getFileAction()

Get download file request([ 'method' => 'GET', 'url' => '/api/v4/download/getFile', 'params' => [ [ 'name' => 'id', 'type' => 'objectId', 'required' => true ] ] ]) response(file)

public getFileAction() : void
Tags
throws
AirlayException
Return values
void

firesAnRelationUpdateEvents()

protected firesAnRelationUpdateEvents(array<string|int, mixed> $relations, ObjectId $dataSetId[, DataSetLogEntity|null $log = null ]) : void
Parameters
$relations : array<string|int, mixed>
$dataSetId : ObjectId
$log : DataSetLogEntity|null = null
Return values
void

getTranslator()

protected getTranslator([string|null $language = null ]) : NativeArray
Parameters
$language : string|null = null
Tags
throws
Exception
Return values
NativeArray

secureData()

protected secureData(mixed $data) : mixed
Parameters
$data : mixed
Return values
mixed

sendEmail()

protected sendEmail(string $email, string $name, string $subject, string $body) : mixed
Parameters
$email : string
$name : string
$subject : string
$body : string
Return values
mixed

Search results