NodesController
extends ApiController
in package
Class NodesController
Table of Contents
- $config : AirlayConfig
- $config : AirlayConfig
- $request : Request
- $user : UserEntity
- $status : StatusPage|null
- $tokenHandler : TokenHandler|null
- __destruct() : mixed
- afterExecuteRoute() : mixed
- beforeExecuteRoute() : mixed
- findByRelationIdAction() : 200
- GET Get nodes
- getAction() : 200
- GET Get nodes by filter Bbox [[lon, lat],[lon, lat]], first point is bottom left bound, second point top right bound
- getRoutesAction() : string
- Get routes from start node to end node request([ 'method' => 'GET' 'url' => '/api/v4/nodes/getRoutes' 'parameters' => [ [ 'name' => 'dataSetId', 'type' => 'objectId', 'description' => 'Data set id' 'required' => true, ], [ 'name' => 'start', 'type' => 'objectId', 'description' => 'start node id' 'required' => true, ], [ 'name' => 'end', 'type' => 'objectId', 'description' => 'end node id' 'required' => true, ] ]) response( '200' => [ 'status' => 200, 'message' => array, 'code' => 0 ] )
- indexAction() : mixed
- initialize() : void
- attachTmpFile() : Response
- firesAnRelationUpdateEvents() : void
- getId() : mixed
- getNormalizedUserId() : int|ObjectId
- getTranslator() : NativeArray
- getUserInfo() : UserEntity
- secureData() : mixed
- sendEmail() : mixed
- validateBbox() : bool
- Validate bbox
Properties
$config
public
AirlayConfig
$config
$config
public
AirlayConfig
$config
$request
public
Request
$request
$user
public
UserEntity
$user
$status
protected
StatusPage|null
$status
$tokenHandler
protected
TokenHandler|null
$tokenHandler
Methods
__destruct()
public
__destruct() : mixed
Return values
mixed —afterExecuteRoute()
public
afterExecuteRoute(Dispatcher $dispatcher) : mixed
Parameters
- $dispatcher : Dispatcher
Return values
mixed —beforeExecuteRoute()
public
beforeExecuteRoute(Dispatcher $dispatcher) : mixed
Parameters
- $dispatcher : Dispatcher
Return values
mixed —findByRelationIdAction()
GET Get nodes
public
findByRelationIdAction() : 200
Tags
Return values
200 —Node
getAction()
GET Get nodes by filter Bbox [[lon, lat],[lon, lat]], first point is bottom left bound, second point top right bound
public
getAction() : 200
Tags
Return values
200 —array Nodes collection
getRoutesAction()
Get routes from start node to end node request([ 'method' => 'GET' 'url' => '/api/v4/nodes/getRoutes' 'parameters' => [ [ 'name' => 'dataSetId', 'type' => 'objectId', 'description' => 'Data set id' 'required' => true, ], [ 'name' => 'start', 'type' => 'objectId', 'description' => 'start node id' 'required' => true, ], [ 'name' => 'end', 'type' => 'objectId', 'description' => 'end node id' 'required' => true, ] ]) response( '200' => [ 'status' => 200, 'message' => array, 'code' => 0 ] )
public
getRoutesAction() : string
Tags
Return values
string —indexAction()
public
indexAction() : mixed
Return values
mixed —initialize()
public
initialize() : void
Return values
void —attachTmpFile()
protected
attachTmpFile(TmpFile $tmpFile) : Response
Parameters
- $tmpFile : TmpFile
Return values
Response —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 —getId()
protected
getId() : mixed
Return values
mixed —getNormalizedUserId()
protected
getNormalizedUserId() : int|ObjectId
Tags
Return values
int|ObjectId —getTranslator()
protected
getTranslator([string|null $language = null ]) : NativeArray
Parameters
- $language : string|null = null
Tags
Return values
NativeArray —getUserInfo()
protected
getUserInfo() : UserEntity
Tags
Return values
UserEntity —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 —validateBbox()
Validate bbox
private
validateBbox( $bbox) : bool