Open Journal Systems  3.3.0
NotificationsGridCellProvider Class Reference
Inheritance diagram for NotificationsGridCellProvider:
GridCellProvider

Public Member Functions

 _getTitle ($notification)
 
 getCellActions ($request, $row, $column, $position=GRID_ACTION_POSITION_DEFAULT)
 
 getTemplateVarsFromRowColumn ($row, $column)
 
- Public Member Functions inherited from GridCellProvider
 __construct ()
 
 render ($request, $row, $column)
 

Detailed Description

Class for a cell provider that can retrieve labels from notifications.

Definition at line 20 of file NotificationsGridCellProvider.inc.php.

Member Function Documentation

◆ _getTitle()

NotificationsGridCellProvider::_getTitle (   $notification)

Get the title for a notification.

Parameters
$notificationNotification
Returns
string

Definition at line 88 of file NotificationsGridCellProvider.inc.php.

References PKPServices\get(), Application\getContextDAO(), DAORegistry\getDAO(), Application\getPaymentManager(), and Application\getRepresentationDAO().

Referenced by getCellActions().

◆ getCellActions()

NotificationsGridCellProvider::getCellActions (   $request,
  $row,
  $column,
  $position = GRID_ACTION_POSITION_DEFAULT 
)

Get cell actions associated with this row/column combination

Parameters
$rowGridRow
$columnGridColumn
Returns
array an array of LinkAction instances

Reimplemented from GridCellProvider.

Definition at line 28 of file NotificationsGridCellProvider.inc.php.

References _getTitle(), Application\getContextDAO(), PKPTemplateManager\getManager(), and PKPString\stripUnsafeHtml().

◆ getTemplateVarsFromRowColumn()

NotificationsGridCellProvider::getTemplateVarsFromRowColumn (   $row,
  $column 
)

Extracts variables for a given column from a data element so that they may be assigned to template before rendering.

Parameters
$rowGridRow
$columnGridColumn
Returns
array

Reimplemented from GridCellProvider.

Definition at line 76 of file NotificationsGridCellProvider.inc.php.


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