AirLay backend

PortalController 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
createAction()  : string
Create portal request([ 'method' => 'POST', 'url' => 'api/v4/administration/portal/create', 'params' => [ [ 'name' => 'settings', 'type' => 'json', 'required' => 'true' ], [ 'name' => 'open', 'type' => 'bool', 'required' => 'false' ] ] ]) response([ 'status' => 200, 'message' = Portal, 'code' => 0 ])
deleteAction()  : string
Delete portal request([ 'method' => 'POST', 'url' => 'api/v4/administration/portal/delete', 'params' => [ [ 'name' => 'id', 'type' => 'absint', 'required' => 'true' ] ] ]) response([ 'status' => 200, 'message' = 'OK', 'code' => 0 ])
deleteAllAction()  : string
Delete all portals for user organization request([ 'method' => 'POST', 'url' => 'api/v4/administration/portal/deleteAll', 'params' => [] ]) response([ 'status' => 200, 'message' = OK, 'code' => 0 ])
getAction()  : string
Get portals request([ 'method' => 'GET', 'url' => 'api/v4/administration/portal/get', 'params' => [ [ 'name' => 'id', 'type' => 'absint', 'required' => 'false' ] ] ]) response([ 'status' => 200, 'message' = Portal[], 'code' => 0 ])
indexAction()  : mixed
initialize()  : void
updateAction()  : string
Update portal request([ 'method' => 'POST', 'url' => 'api/v4/administration/portal/update', 'params' => [ [ 'name' => 'id', 'type' => 'absint', 'required' => 'true' ], [ 'name' => 'settings', 'type' => 'json', 'required' => 'true' ], [ 'name' => 'open', 'type' => 'bool', 'required' => 'false' ], [ 'name' => 'searches', 'type' => 'ObjectId[]', 'required' => 'false' ], [ 'name' => 'helps', 'type' => 'ObjectId[]', 'required' => 'false' ], [ 'name' => 'privateRegistration', 'type' => 'bool', 'required' => 'false' ] ] ]) response([ 'status' => 200, 'message' = Portal, 'code' => 0 ])
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

createAction()

Create portal request([ 'method' => 'POST', 'url' => 'api/v4/administration/portal/create', 'params' => [ [ 'name' => 'settings', 'type' => 'json', 'required' => 'true' ], [ 'name' => 'open', 'type' => 'bool', 'required' => 'false' ] ] ]) response([ 'status' => 200, 'message' = Portal, 'code' => 0 ])

public createAction() : string
Tags
throws
Exception
Return values
string

deleteAction()

Delete portal request([ 'method' => 'POST', 'url' => 'api/v4/administration/portal/delete', 'params' => [ [ 'name' => 'id', 'type' => 'absint', 'required' => 'true' ] ] ]) response([ 'status' => 200, 'message' = 'OK', 'code' => 0 ])

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

deleteAllAction()

Delete all portals for user organization request([ 'method' => 'POST', 'url' => 'api/v4/administration/portal/deleteAll', 'params' => [] ]) response([ 'status' => 200, 'message' = OK, 'code' => 0 ])

public deleteAllAction() : string
Tags
throws
Exception
Return values
string

getAction()

Get portals request([ 'method' => 'GET', 'url' => 'api/v4/administration/portal/get', 'params' => [ [ 'name' => 'id', 'type' => 'absint', 'required' => 'false' ] ] ]) response([ 'status' => 200, 'message' = Portal[], 'code' => 0 ])

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

updateAction()

Update portal request([ 'method' => 'POST', 'url' => 'api/v4/administration/portal/update', 'params' => [ [ 'name' => 'id', 'type' => 'absint', 'required' => 'true' ], [ 'name' => 'settings', 'type' => 'json', 'required' => 'true' ], [ 'name' => 'open', 'type' => 'bool', 'required' => 'false' ], [ 'name' => 'searches', 'type' => 'ObjectId[]', 'required' => 'false' ], [ 'name' => 'helps', 'type' => 'ObjectId[]', 'required' => 'false' ], [ 'name' => 'privateRegistration', 'type' => 'bool', 'required' => 'false' ] ] ]) response([ 'status' => 200, 'message' = Portal, 'code' => 0 ])

public updateAction() : string
Tags
throws
AirlayException
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