NotificationService
in package
Uses
TNCLogger
Class NotificationService
Table of Contents
- $ALERT : mixed
- $CRITICAL : mixed
- $DEBUG : mixed
- $EMERGENCY : mixed
- $ERROR : mixed
- $INFO : mixed
- $NOTICE : mixed
- $WARNING : mixed
- $memberRequest : MemberRequest
- $notificationManager : IManager
- $timezoneService : TimezoneService
- $urlGenerator : IURLGenerator
- __construct() : mixed
- NotificationService constructor.
- alert() : void
- debug() : void
- deleteNotification() : mixed
- e() : void
- emergency() : void
- exception() : void
- log() : void
- logger() : LoggerInterface
- notice() : void
- notificationInvited() : void
- notificationRequested() : void
- t() : void
- throwable() : void
- warning() : void
- createMemberNotification() : INotification
- linkToOCS() : string
Properties
$ALERT
public
static mixed
$ALERT
= 3
$CRITICAL
public
static mixed
$CRITICAL
= 3
$DEBUG
public
static mixed
$DEBUG
= 0
$EMERGENCY
public
static mixed
$EMERGENCY
= 4
$ERROR
public
static mixed
$ERROR
= 3
$INFO
public
static mixed
$INFO
= 1
$NOTICE
public
static mixed
$NOTICE
= 1
$WARNING
public
static mixed
$WARNING
= 2
$memberRequest
private
MemberRequest
$memberRequest
$notificationManager
private
IManager
$notificationManager
$timezoneService
private
TimezoneService
$timezoneService
$urlGenerator
private
IURLGenerator
$urlGenerator
Methods
__construct()
NotificationService constructor.
public
__construct(IURLGenerator $urlGenerator, IManager $notificationManager, MemberRequest $memberRequest, TimezoneService $timezoneService) : mixed
Parameters
- $urlGenerator : IURLGenerator
- $notificationManager : IManager
- $memberRequest : MemberRequest
- $timezoneService : TimezoneService
Return values
mixed —alert()
public
alert(string $message[, bool $trace = false ][, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $message : string
- $trace : bool = false
- $serializable : array<string|int, mixed> = []
Return values
void —debug()
public
debug(string $message[, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $message : string
- $serializable : array<string|int, mixed> = []
Return values
void —deleteNotification()
public
deleteNotification(string $object, string $objectId) : mixed
Parameters
- $object : string
- $objectId : string
Return values
mixed —e()
public
e(Exception $e[, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $e : Exception
- $serializable : array<string|int, mixed> = []
Return values
void —emergency()
public
emergency(string $message[, bool $trace = false ][, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $message : string
- $trace : bool = false
- $serializable : array<string|int, mixed> = []
Return values
void —exception()
public
exception(Exception $e[, int|array<string|int, mixed> $level = 3 ][, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $e : Exception
- $level : int|array<string|int, mixed> = 3
- $serializable : array<string|int, mixed> = []
Return values
void —log()
public
log(int $level, string $message[, bool $trace = false ][, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $level : int
- $message : string
- $trace : bool = false
- $serializable : array<string|int, mixed> = []
Return values
void —logger()
public
logger() : LoggerInterface
Return values
LoggerInterface —notice()
public
notice(string $message[, bool $trace = false ][, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $message : string
- $trace : bool = false
- $serializable : array<string|int, mixed> = []
Return values
void —notificationInvited()
public
notificationInvited(Member $member) : void
Parameters
- $member : Member
Return values
void —notificationRequested()
public
notificationRequested(Member $member) : void
Parameters
- $member : Member
Tags
Return values
void —t()
public
t(Throwable $t[, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $t : Throwable
- $serializable : array<string|int, mixed> = []
Return values
void —throwable()
public
throwable(Throwable $t[, int $level = 3 ][, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $t : Throwable
- $level : int = 3
- $serializable : array<string|int, mixed> = []
Return values
void —warning()
public
warning(string $message[, bool $trace = false ][, array<string|int, mixed> $serializable = [] ]) : void
Parameters
- $message : string
- $trace : bool = false
- $serializable : array<string|int, mixed> = []
Return values
void —createMemberNotification()
private
createMemberNotification(string $userId, string $memberId, string $subject) : INotification
Parameters
- $userId : string
- $memberId : string
- $subject : string
Return values
INotification —linkToOCS()
private
linkToOCS(string $route[, array<string|int, mixed> $params = [] ]) : string
Parameters
- $route : string
- $params : array<string|int, mixed> = []