NotificationService
extends AirlayService
in package
Class AirlayService
Table of Contents
- $ : AirlayConfig
- $collection : NotificationsCollection
- $rabbitmq : AMQPStreamConnection
- $user : UserEntity
- $collection : mixed
- __construct() : mixed
- createIssueNotification() : bool
- createNotification() : NotificationEntity
- getCollection() : mixed
- sendEditorNotification() : bool
- sendIssueNotifications() : void
Properties
$
public
AirlayConfig
$
config
$collection
public
NotificationsCollection
$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 —createIssueNotification()
public
createIssueNotification(ObjectId $issueId, IssueLogEntity $log) : bool
Parameters
- $issueId : ObjectId
- $log : IssueLogEntity
Return values
bool —createNotification()
public
createNotification(ObjectId $userId, mixed $tool, string $type[, string $message = "" ]) : NotificationEntity
Parameters
- $userId : ObjectId
- $tool : mixed
- $type : string
- $message : string = ""
Return values
NotificationEntity —getCollection()
public
getCollection() : mixed
Return values
mixed —sendEditorNotification()
public
sendEditorNotification(ObjectId $userId, string $type, string $message) : bool
Parameters
- $userId : ObjectId
- $type : string
- $message : string
Return values
bool —sendIssueNotifications()
public
sendIssueNotifications(IssueEntity $issue, IssueLogEntity $log) : void
Parameters
- $issue : IssueEntity
- $log : IssueLogEntity