PHP Class NotificationManager, ojs

Inheritance: extends PKPNotificationManager
Afficher le fichier Open project: pkp/ojs Class Usage Examples

Méthodes publiques

Свойство Type Description
$privilegedRoles * @var array Cache each user's most privileged role for each submission

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
getMgrDelegate ( $notificationType, $assocType, $assocId )

Method Details

__construct() public méthode

Constructor.
public __construct ( )

_getArticleTitle() public méthode

Helper function to get an article title from a notification's associated object
public _getArticleTitle ( $notification ) : string
$notification
Résultat string

getIconClass() public méthode

Return a CSS class containing the icon of this notification type
public getIconClass ( $notification ) : string
$notification Notification
Résultat string

getMgrDelegate() protected méthode

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

getNotificationMessage() public méthode

Construct the contents for the notification based on its type and associated object
public getNotificationMessage ( $request, $notification ) : string
$request PKPRequest
$notification Notification
Résultat string

getNotificationUrl() public méthode

Construct a URL for the notification based on its type and associated object
public getNotificationUrl ( $request, $notification ) : string
$request PKPRequest
$notification Notification
Résultat string

getStyleClass() public méthode

get notification style class
public getStyleClass ( $notification ) : string
$notification Notification
Résultat string

Property Details

$privilegedRoles public_oe property

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