Open Monograph Press  3.3.0
GridCellProvider Class Reference
Inheritance diagram for GridCellProvider:
AnnouncementTypeGridCellProvider ArrayGridCellProvider ChapterGridCategoryRowCellProvider ColumnBasedGridCellProvider ContextGridCellProvider CustomLocaleGridCellProvider DataObjectGridCellProvider DateGridCellProvider GridCategoryRowCellProvider LanguageGridCellProvider LibraryFileGridCellProvider LiteralGridCellProvider NavigationMenuItemsGridCellProvider NavigationMenusGridCellProvider NotificationsGridCellProvider NullGridCellProvider PluginGalleryGridCellProvider PluginGridCellProvider ReviewFormElementGridCellProvider ReviewFormElementResponseItemListbuilderGridCellProvider ReviewFormGridCellProvider SeriesGridCellProvider StaticPageGridCellProvider UserGroupGridCellProvider UserListbuilderGridCellProvider

Public Member Functions

 __construct ()
 
 getCellActions ($request, $row, $column, $position=GRID_ACTION_POSITION_DEFAULT)
 
 getTemplateVarsFromRowColumn ($row, $column)
 
 render ($request, $row, $column)
 

Detailed Description

Base class for a grid column's cell provider.

Grid cell providers provide formatted data to grid columns. For general information about grids, see GridHandler.

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

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ getCellActions()

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

Subclasses can override this template method to provide cell specific actions.

NB: The default implementation delegates to the grid column for cell-specific actions. Another thinkable implementation would be row-specific actions in which case action instantiation should be delegated to the row.

Parameters
$requestRequest
$rowGridRow
$columnGridColumn
$positionint GRID_ACTION_POSITION_...
Returns
array an array of LinkAction instances

Reimplemented in GridCategoryRowCellProvider, PublicationFormatGridCellProvider, ReviewerGridCellProvider, QueriesGridCellProvider, AuthorReviewerGridCellProvider, PluginGalleryGridCellProvider, LanguageGridCellProvider, QueryNotesGridCellProvider, UserGroupGridCellProvider, PluginGridCellProvider, ReviewFormGridCellProvider, LibraryFileGridCellProvider, SeriesGridCellProvider, StaticPageGridCellProvider, NotificationsGridCellProvider, ChapterGridCategoryRowCellProvider, CustomLocaleGridCellProvider, AnnouncementTypeGridCellProvider, NavigationMenuItemsGridCellProvider, and NavigationMenusGridCellProvider.

Definition at line 95 of file GridCellProvider.inc.php.

Referenced by render().

◆ getTemplateVarsFromRowColumn()

GridCellProvider::getTemplateVarsFromRowColumn (   $row,
  $column 
)

◆ render()

GridCellProvider::render (   $request,
  $row,
  $column 
)

To be used by a GridRow to generate a rendered representation of the element for the given column.

Parameters
$rowGridRow
$columnGridColumn
Returns
string the rendered representation of the element for the given column

Reimplemented in GridCategoryRowCellProvider, and NullGridCellProvider.

Definition at line 39 of file GridCellProvider.inc.php.

References getCellActions(), PKPTemplateManager\getManager(), AppLocale\getSupportedFormLocales(), and getTemplateVarsFromRowColumn().


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