PHP 클래스 NotificationHandler, pkp-lib

상속: extends Handler
파일 보기 프로젝트 열기: pkp/pkp-lib 1 사용 예제들

공개 메소드들

메소드 설명
__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