AirLay backend

NotificationController 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
deleteByIdAction()  : string
POST Delete notification by id request([ "method" => "POST", "url" => "api/v4/notification/deleteById", 'params' => [ [ 'name' => 'id', 'type' => 'objectId', 'description' => 'notification id', 'required' => true ] ] ]) response([ "status" => 200, "message" => "OK" "code" => 0 ])
deleteByIdsAction()  : string
POST Delete notification by ids request([ "method" => "POST", "url" => "api/v4/notification/deleteByIds", 'params' => [ [ 'name' => 'ids', 'type' => 'objectId[]', 'description' => 'notifications ids', 'required' => true ] ] ]) response([ "status" => 200, "message" => "OK" "code" => 0 ])
deleteByToolAction()  : string
POST Delete user notification by tool request([ "method" => "POST", "url" => "api/v4/notification/deleteByTool", 'params' => [ [ 'name' => 'tool', 'type' => 'string', 'description' => 'notification tool', 'required' => true ], ] ]) response([ "status" => 200, "message" => "OK" "code" => 0 ])
getAction()  : string
Get notifications.
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

deleteByIdAction()

POST Delete notification by id request([ "method" => "POST", "url" => "api/v4/notification/deleteById", 'params' => [ [ 'name' => 'id', 'type' => 'objectId', 'description' => 'notification id', 'required' => true ] ] ]) response([ "status" => 200, "message" => "OK" "code" => 0 ])

public deleteByIdAction() : string
Tags
throws
AirlayException
Return values
string

deleteByIdsAction()

POST Delete notification by ids request([ "method" => "POST", "url" => "api/v4/notification/deleteByIds", 'params' => [ [ 'name' => 'ids', 'type' => 'objectId[]', 'description' => 'notifications ids', 'required' => true ] ] ]) response([ "status" => 200, "message" => "OK" "code" => 0 ])

public deleteByIdsAction() : string
Tags
throws
AirlayException
Return values
string

deleteByToolAction()

POST Delete user notification by tool request([ "method" => "POST", "url" => "api/v4/notification/deleteByTool", 'params' => [ [ 'name' => 'tool', 'type' => 'string', 'description' => 'notification tool', 'required' => true ], ] ]) response([ "status" => 200, "message" => "OK" "code" => 0 ])

public deleteByToolAction() : string
Tags
throws
AirlayException
Return values
string

getAction()

Get notifications.

public getAction() : string

request([ 'method' => 'GET', 'url' => '/api/v4/notification/get', 'params' => [ [ 'name' => 'tool', 'type' => 'string', 'description' => 'notification tool', 'required' => false ], [ 'name' => 'type', 'type' => 'string', 'description' => 'notification type', 'required' => false ], ] ]) response([ 'status' => 'OK', 'message' => NotificationEntity[] 'code' => 0 ])

Return values
string

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