PHP 클래스 GridCellProvider, pkp-lib

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

공개 메소드들

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