Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
NotificationHandler Class Reference
Inheritance diagram for NotificationHandler:
Handler PKPHandler

Public Member Functions

_addNotificationsToArray (&$resultFactory, &$notificationArray)
 
_getNotificationsByOptions ($notificationOptions, $contextId, $userId=null)
 
 confirmMailListSubscription ($args, &$request)
 
 delete ($args, &$request)
 
 fetchNotification ($args, &$request)
 
 getNotificationFeedUrl ($args, &$request)
 
 index ($args, &$request)
 
 mailListSubscribed ($args, &$request)
 
 notificationFeed ($args, &$request)
 
 saveSettings ($args, &$request)
 
 saveSubscribeMailList ($args, &$request)
 
 settings ($args, &$request)
 
 setupTemplate ()
 
 subscribeMailList ($args, &$request)
 
 unsubscribeMailList ($args, &$request)
 
- Public Member Functions inherited from PKPHandler
 addCheck (&$handlerValidator)
 
 addPolicy (&$authorizationPolicy, $addToTop=false)
 
 addRoleAssignment ($roleIds, $operations)
 
 authorize (&$request, &$args, $roleAssignments)
 
getAuthorizedContext ()
 
getAuthorizedContextObject ($assocType)
 
getDispatcher ()
 
 getId ()
 
 getLastAuthorizationMessage ()
 
 getLoginExemptions ()
 
getRangeInfo ($rangeName, $contextData=null)
 
 getRoleAssignment ($roleId)
 
 getRoleAssignments ()
 
 hashPageContext ($contextData=array())
 
 index ()
 
 initialize (&$request, $args=null)
 
 PKPHandler ()
 
 requireSSL ()
 
 setDispatcher (&$dispatcher)
 
 setId ($id)
 
 validate ($requiredContexts=null, $request=null)
 

Detailed Description

Handle requests for viewing notifications.

Definition at line 19 of file NotificationHandler.inc.php.

Member Function Documentation

& NotificationHandler::_addNotificationsToArray ( $resultFactory,
$notificationArray 
)

Add notifications from a result factory to an array of existing notifications.

Parameters
$resultFactoryDAOResultFactory
$notificationArrayArray

Definition at line 438 of file NotificationHandler.inc.php.

Referenced by _getNotificationsByOptions().

& NotificationHandler::_getNotificationsByOptions (   $notificationOptions,
  $contextId,
  $userId = null 
)

Get the notifications using options.

Parameters
$notificationOptionsArray
$contextIdint
$userIdint
Returns
Array

Definition at line 400 of file NotificationHandler.inc.php.

References _addNotificationsToArray(), and DAORegistry\getDAO().

Referenced by fetchNotification().

NotificationHandler::confirmMailListSubscription (   $args,
$request 
)

Confirm the subscription (accessed via emailed link)

Parameters
$argsarray
$requestRequest

Definition at line 296 of file NotificationHandler.inc.php.

References DAORegistry\getDAO(), and setupTemplate().

NotificationHandler::delete (   $args,
$request 
)

Delete a notification

Parameters
$argsarray
$requestRequest

Definition at line 70 of file NotificationHandler.inc.php.

References DAORegistry\getDAO(), and PKPHandler\validate().

NotificationHandler::fetchNotification (   $args,
$request 
)

Return formatted notification data using Json.

Parameters
$argsarray
$requestRequest
Returns
JSONMessage

Definition at line 352 of file NotificationHandler.inc.php.

References _getNotificationsByOptions(), DAORegistry\getDAO(), and setupTemplate().

NotificationHandler::getNotificationFeedUrl (   $args,
$request 
)

Fetch the existing or create a new URL for the user's RSS feed

Parameters
$argsarray
$requestRequest

Definition at line 141 of file NotificationHandler.inc.php.

References DAORegistry\getDAO().

NotificationHandler::index (   $args,
$request 
)

Display help table of contents.

Parameters
$argsarray
$requestRequest

Definition at line 26 of file NotificationHandler.inc.php.

References DAORegistry\getDAO(), PKPHandler\getRangeInfo(), setupTemplate(), and PKPHandler\validate().

NotificationHandler::mailListSubscribed (   $args,
$request 
)

Display a success or error message if the user was subscribed

Parameters
$argsarray
$requestRequest

Definition at line 276 of file NotificationHandler.inc.php.

References setupTemplate().

NotificationHandler::notificationFeed (   $args,
$request 
)

Fetch the actual RSS feed

Parameters
$argsarray
$requestRequest

Definition at line 170 of file NotificationHandler.inc.php.

References PKPApplication\getApplication(), DAORegistry\getDAO(), AppLocale\getPrimaryLocale(), and setupTemplate().

NotificationHandler::saveSettings (   $args,
$request 
)

Save user notification settings

Parameters
$argsarray
$requestRequest

Definition at line 118 of file NotificationHandler.inc.php.

References setupTemplate(), and PKPHandler\validate().

NotificationHandler::saveSubscribeMailList (   $args,
$request 
)

Save the public notification email subscription form

Parameters
$argsarray
$requestRequest

Definition at line 253 of file NotificationHandler.inc.php.

References setupTemplate(), and PKPHandler\validate().

NotificationHandler::settings (   $args,
$request 
)

View and modify notification settings

Parameters
$argsarray
$requestRequest

Definition at line 97 of file NotificationHandler.inc.php.

References setupTemplate(), and PKPHandler\validate().

NotificationHandler::setupTemplate ( )
NotificationHandler::subscribeMailList (   $args,
$request 
)

Display the public notification email subscription form

Parameters
$argsarray
$requestRequest

Definition at line 233 of file NotificationHandler.inc.php.

References setupTemplate().

NotificationHandler::unsubscribeMailList (   $args,
$request 
)

Save the maillist unsubscribe form

Parameters
$argsarray
$requestRequest

Definition at line 324 of file NotificationHandler.inc.php.

References DAORegistry\getDAO(), and setupTemplate().


The documentation for this class was generated from the following file: