GenericTable: rename 'parse' option to 'format'

This commit is contained in:
Aaron committed 2025-01-08 19:11:10 +01:00
1 parent cc0ff71ef7
commit 77809faada
6 files changed
+22 -22

No files matched your search

+4 -4
View File
@@ -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';