forked from Public/pics
GenericTable: rename 'parse' option to 'format'
This commit is contained in:
@@ -191,9 +191,9 @@ class GenericTable
|
||||
|
||||
foreach ($options['columns'] as $column)
|
||||
{
|
||||
// Process data for this particular cell.
|
||||
if (isset($column['parse']))
|
||||
$value = self::processCell($column['parse'], $row);
|
||||
// Process formatting
|
||||
if (isset($column['format']))
|
||||
$value = self::processFormatting($column['format'], $row);
|
||||
else
|
||||
$value = $row[$column['value']];
|
||||
|
||||
@@ -209,7 +209,7 @@ class GenericTable
|
||||
}
|
||||
}
|
||||
|
||||
private function processCell($options, $rowData)
|
||||
private function processFormatting($options, $rowData)
|
||||
{
|
||||
if (!isset($options['type']))
|
||||
$options['type'] = 'value';
|
||||
|
||||
Reference in New Issue
Block a user