AirLay backend

PortalService extends AirlayService
in package

Class AirlayService

Table of Contents

$  : AirlayConfig
$collection  : PortalsCollection
$rabbitmq  : AMQPStreamConnection
$user  : UserEntity
$collection  : mixed
__construct()  : mixed
create()  : PortalEntity
createDefaultPortal()  : PortalEntity
delete()  : void
deleteAll()  : void
getCollection()  : mixed
hasCmsAccess()  : bool
hasUserAccess()  : bool
update()  : PortalEntity
checkHelps()  : void
checkSearches()  : void
checkSettings()  : void

Properties

Methods

__construct()

public __construct(mixed $collection) : mixed
Parameters
$collection : mixed
Return values
mixed

delete()

public delete(int $portalId, ObjectId $organizationId) : void
Parameters
$portalId : int
$organizationId : ObjectId
Return values
void

deleteAll()

public deleteAll(array<string|int, mixed> $portalsIds, ObjectId $organizationId) : void
Parameters
$portalsIds : array<string|int, mixed>
$organizationId : ObjectId
Return values
void

getCollection()

public getCollection() : mixed
Return values
mixed

hasCmsAccess()

public hasCmsAccess(int $portalId, ObjectId $userId) : bool
Parameters
$portalId : int
$userId : ObjectId
Return values
bool

update()

public update(int $_id, array<string|int, mixed> $portalArray, ObjectId $organizationId) : PortalEntity
Parameters
$_id : int
$portalArray : array<string|int, mixed>
$organizationId : ObjectId
Return values
PortalEntity

checkHelps()

private checkHelps(array<string|int, mixed> $helps, ObjectId $organizationId) : void
Parameters
$helps : array<string|int, mixed>
$organizationId : ObjectId
Tags
throws
RuntimeException
Return values
void

checkSearches()

private checkSearches(array<string|int, ObjectId$searches, UserEntity $user) : void
Parameters
$searches : array<string|int, ObjectId>
$user : UserEntity
Tags
throws
RuntimeException
Return values
void

checkSettings()

private checkSettings(array<string|int, mixed> $settings) : void
Parameters
$settings : array<string|int, mixed>
Tags
throws
RuntimeException
Return values
void

Search results