Open Journal Systems  3.3.0
ArticleGalleyGridCellProvider Class Reference
Inheritance diagram for ArticleGalleyGridCellProvider:
DataObjectGridCellProvider GridCellProvider

Public Member Functions

 __construct ($submission, $publication, $isEditable)
 
 getCellActions ($request, $row, $column, $position=GRID_ACTION_POSITION_DEFAULT)
 
 getRequestArgs ($row)
 
 getTemplateVarsFromRowColumn ($row, $column)
 
- Public Member Functions inherited from DataObjectGridCellProvider
 getLocale ()
 
 setLocale ($locale)
 
- Public Member Functions inherited from GridCellProvider
 __construct ()
 
 render ($request, $row, $column)
 

Data Fields

 $_isEditable
 
 $_publication
 
 $_submission
 
- Data Fields inherited from DataObjectGridCellProvider
 $_locale = null
 

Detailed Description

Base class for a cell provider for article galleys.

Definition at line 18 of file ArticleGalleyGridCellProvider.inc.php.

Constructor & Destructor Documentation

◆ __construct()

ArticleGalleyGridCellProvider::__construct (   $submission,
  $publication,
  $isEditable 
)

Constructor

Parameters
$submissionSubmission

Definition at line 38 of file ArticleGalleyGridCellProvider.inc.php.

Member Function Documentation

◆ getCellActions()

ArticleGalleyGridCellProvider::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 from GridCellProvider.

Definition at line 82 of file ArticleGalleyGridCellProvider.inc.php.

References DAORegistry\getDAO().

◆ getRequestArgs()

ArticleGalleyGridCellProvider::getRequestArgs (   $row)

Get request arguments.

Parameters
$rowGridRow
Returns
array

Definition at line 72 of file ArticleGalleyGridCellProvider.inc.php.

◆ getTemplateVarsFromRowColumn()

ArticleGalleyGridCellProvider::getTemplateVarsFromRowColumn (   $row,
  $column 
)

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.

Parameters
$rowGridRow
$columnGridColumn
Returns
array

Reimplemented from DataObjectGridCellProvider.

Definition at line 51 of file ArticleGalleyGridCellProvider.inc.php.

Field Documentation

◆ $_isEditable

ArticleGalleyGridCellProvider::$_isEditable

Definition at line 32 of file ArticleGalleyGridCellProvider.inc.php.

◆ $_publication

Publication ArticleGalleyGridCellProvider::$_publication

Definition at line 30 of file ArticleGalleyGridCellProvider.inc.php.

◆ $_submission

Submission ArticleGalleyGridCellProvider::$_submission

Definition at line 24 of file ArticleGalleyGridCellProvider.inc.php.


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