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
$
public
AirlayConfig
$
config
$collection
public
PortalsCollection
$collection
$rabbitmq
public
AMQPStreamConnection
$rabbitmq
$user
public
UserEntity
$user
$collection
protected
mixed
$collection
Methods
__construct()
public
__construct(mixed $collection) : mixed
Parameters
- $collection : mixed
Return values
mixed —create()
public
create(array<string|int, mixed> $portalArray) : PortalEntity
Parameters
- $portalArray : array<string|int, mixed>
Return values
PortalEntity —createDefaultPortal()
public
createDefaultPortal(ObjectId $organizationId) : PortalEntity
Parameters
- $organizationId : ObjectId
Return values
PortalEntity —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 —hasUserAccess()
public
hasUserAccess(int $portalId, UserEntity|null $user) : bool
Parameters
- $portalId : int
- $user : UserEntity|null
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
Return values
void —checkSearches()
private
checkSearches(array<string|int, ObjectId> $searches, UserEntity $user) : void
Parameters
- $searches : array<string|int, ObjectId>
- $user : UserEntity
Tags
Return values
void —checkSettings()
private
checkSettings(array<string|int, mixed> $settings) : void
Parameters
- $settings : array<string|int, mixed>