PHP Класс NotificationManager, ojs

Наследование: extends PKPNotificationManager
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$privilegedRoles * @var array Cache each user's most privileged role for each submission

Открытые методы

Метод Описание
__construct ( ) Constructor.
_getArticleTitle ( $notification ) : string Helper function to get an article title from a notification's associated object
getIconClass ( $notification ) : string Return a CSS class containing the icon of this notification type
getNotificationMessage ( $request, $notification ) : string Construct the contents for the notification based on its type and associated object
getNotificationUrl ( $request, $notification ) : string Construct a URL for the notification based on its type and associated object
getStyleClass ( $notification ) : string get notification style class

Защищенные методы

Метод Описание
getMgrDelegate ( $notificationType, $assocType, $assocId )

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( )

_getArticleTitle() публичный Метод

Helper function to get an article title from a notification's associated object
public _getArticleTitle ( $notification ) : string
$notification
Результат string

getIconClass() публичный Метод

Return a CSS class containing the icon of this notification type
public getIconClass ( $notification ) : string
$notification Notification
Результат string

getMgrDelegate() защищенный Метод

protected getMgrDelegate ( $notificationType, $assocType, $assocId )

getNotificationMessage() публичный Метод

Construct the contents for the notification based on its type and associated object
public getNotificationMessage ( $request, $notification ) : string
$request PKPRequest
$notification Notification
Результат string

getNotificationUrl() публичный Метод

Construct a URL for the notification based on its type and associated object
public getNotificationUrl ( $request, $notification ) : string
$request PKPRequest
$notification Notification
Результат string

getStyleClass() публичный Метод

get notification style class
public getStyleClass ( $notification ) : string
$notification Notification
Результат string

Описание свойств

$privilegedRoles публичное свойство

* @var array Cache each user's most privileged role for each submission
public $privilegedRoles