Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
DateGridCellProvider Class Reference
Inheritance diagram for DateGridCellProvider:
GridCellProvider

Public Member Functions

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

Public Attributes

 $_dataProvider
 
 $_format
 

Detailed Description

Wraps date formatting support around a provided DataProvider.

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

Member Function Documentation

DateGridCellProvider::DateGridCellProvider (   $dataProvider,
  $format 
)

Constructor

Parameters
$dataProviderDataProvider The object to wrap
$formatstring See strftime

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

DateGridCellProvider::getTemplateVarsFromRowColumn (   $row,
  $column 
)

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

Parameters
$rowGridRow
$columnGridColumn
Returns
array

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

Member Data Documentation

The DateGridCellProvider::$_dataProvider

actual data provider to wrap

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

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: