PHP Класс GridCellProvider, pkp-lib

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

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

Метод Описание
__construct ( ) Constructor
getCellActions ( $request, $row, $column, $position = GRID_ACTION_POSITION_DEFAULT ) : array Subclasses can override this template method to provide cell specific actions.
getTemplateVarsFromRowColumn ( $row, $column ) : array Subclasses have to implement this method to extract variables for a given column from a data element so that they may be assigned to template before rendering.
render ( $request, $row, $column ) : string To be used by a GridRow to generate a rendered representation of the element for the given column.

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

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

Constructor
public __construct ( )

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

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.
public getCellActions ( $request, $row, $column, $position = GRID_ACTION_POSITION_DEFAULT ) : array
$request Request
$row GridRow
$column GridColumn
$position int GRID_ACTION_POSITION_...
Результат array an array of LinkAction instances

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

Subclasses have to implement this method to extract variables for a given column from a data element so that they may be assigned to template before rendering.
public getTemplateVarsFromRowColumn ( $row, $column ) : array
$row GridRow
$column GridColumn
Результат array

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

To be used by a GridRow to generate a rendered representation of the element for the given column.
public render ( $request, $row, $column ) : string
$row GridRow
$column GridColumn
Результат string the rendered representation of the element for the given column