NotificationComponent
extends BaseComponent
in package
Class UserComponent
Table of Contents
Constants
- pageSize = 300
Properties
Methods
- countUnreadNotification() : mixed
- entityToDto() : NotificationDto
- formatObject() : mixed
- getAvailableNotifications() : ResultsetInterface
- getLatestNotificationData() : mixed
- markAllRead() : mixed
- _() : mixed
Constants
pageSize
public
mixed
pageSize
= 300
Properties
$trans read-only
public
Translator
$trans
Methods
countUnreadNotification()
public
countUnreadNotification(mixed $userId) : mixed
Parameters
- $userId : mixed
entityToDto()
public
entityToDto(Notification $entity) : NotificationDto
Parameters
- $entity : Notification
Return values
NotificationDtoformatObject()
public
formatObject(mixed &$result) : mixed
Parameters
- $result : mixed
getAvailableNotifications()
public
getAvailableNotifications(mixed $user_id, mixed $since) : ResultsetInterface
Parameters
- $user_id : mixed
- $since : mixed
Return values
ResultsetInterfacegetLatestNotificationData()
public
getLatestNotificationData(mixed $userId) : mixed
Parameters
- $userId : mixed
markAllRead()
public
markAllRead(mixed $userId) : mixed
Parameters
- $userId : mixed
_()
protected
static _(mixed $string[, array<string|int, mixed> $params = [] ]) : mixed
Parameters
- $string : mixed
- $params : array<string|int, mixed> = []