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

Public Member Functions

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

Data Fields

 $_dataProvider
 
 $_format
 

Detailed Description

Wraps date formatting support around a provided DataProvider.

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

Constructor & Destructor Documentation

◆ __construct()

DateGridCellProvider::__construct (   $dataProvider,
  $format 
)

Constructor

Parameters
$dataProviderDataProvider The object to wrap
$formatstring See strftime

Definition at line 36 of file DateGridCellProvider.inc.php.

Member Function Documentation

◆ getTemplateVarsFromRowColumn()

DateGridCellProvider::getTemplateVarsFromRowColumn (   $row,
  $column 
)

Fetch a value from the provided DataProvider (in constructor) and format it as a date.

Parameters
$rowGridRow
$columnGridColumn
Returns
array

Reimplemented from GridCellProvider.

Definition at line 52 of file DateGridCellProvider.inc.php.

Field Documentation

◆ $_dataProvider

The DateGridCellProvider::$_dataProvider

actual data provider to wrap

Definition at line 23 of file DateGridCellProvider.inc.php.

◆ $_format

The DateGridCellProvider::$_format

format to use; see strftime

Definition at line 29 of file DateGridCellProvider.inc.php.


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