PHP Класс NotificationHandler, pkp-lib

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

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

Метод Описание
__construct ( ) Constructor
_addNotificationsToArray ( $resultFactory, $notificationArray ) Add notifications from a result factory to an array of existing notifications.
_getNotificationsByOptions ( $notificationOptions, $contextId, $userId = null ) : Array Get the notifications using options.
confirmMailListSubscription ( $args, $request ) Confirm the subscription (accessed via emailed link)
fetchNotification ( $args, $request ) : JSONMessage Return formatted notification data using Json.
getNotificationFeedUrl ( $args, $request ) Fetch the existing or create a new URL for the user's RSS feed
index ( $args, $request ) Display help table of contents.
mailListSubscribed ( $args, $request ) Display a success or error message if the user was subscribed
notificationFeed ( $args, $request ) Fetch the actual RSS feed
saveSubscribeMailList ( $args, $request ) Save the public notification email subscription form
setupTemplate ( $request ) Override setupTemplate() so we can load other locale components.
subscribeMailList ( $args, $request ) Display the public notification email subscription form
unsubscribeMailList ( $args, $request ) Save the maillist unsubscribe form

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

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

Constructor
public __construct ( )

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

Add notifications from a result factory to an array of existing notifications.
public _addNotificationsToArray ( $resultFactory, $notificationArray )
$resultFactory DAOResultFactory
$notificationArray Array

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

Get the notifications using options.
public _getNotificationsByOptions ( $notificationOptions, $contextId, $userId = null ) : Array
$notificationOptions Array
$contextId int
$userId int
Результат Array

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

Confirm the subscription (accessed via emailed link)
public confirmMailListSubscription ( $args, $request )
$args array
$request Request

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

Return formatted notification data using Json.
public fetchNotification ( $args, $request ) : JSONMessage
$args array
$request Request
Результат JSONMessage JSON object

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

Fetch the existing or create a new URL for the user's RSS feed
public getNotificationFeedUrl ( $args, $request )
$args array
$request Request

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

Display help table of contents.
public index ( $args, $request )
$args array
$request Request

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

Display a success or error message if the user was subscribed
public mailListSubscribed ( $args, $request )
$args array
$request Request

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

Fetch the actual RSS feed
public notificationFeed ( $args, $request )
$args array
$request Request

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

Save the public notification email subscription form
public saveSubscribeMailList ( $args, $request )
$args array
$request Request

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

Override setupTemplate() so we can load other locale components.
public setupTemplate ( $request )

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

Display the public notification email subscription form
public subscribeMailList ( $args, $request )
$args array
$request Request

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

Save the maillist unsubscribe form
public unsubscribeMailList ( $args, $request )
$args array
$request Request