Actions
Feature #15399
closedHook needed in class.t3lib_befunc.php, function getProcessedValue
Start date:
2006-01-12
Due date:
% Done:
0%
Estimated time:
PHP Version:
4
Tags:
Complexity:
Sprint Focus:
Description
I need a hook in the function getProcessedValue to postProcess the value of a record in the list-view. That can be used to format a value in some user-defined ways without changing the database. I need it to format a number to a specially human readable format.
My proposition (insert in line 1933, class.t3lib_befunc.php, function getProcessedValue):
// Hook for post-processing the human readable output from a record
if (is_array ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['postProcessValue'])) {
foreach ($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['postProcessValue'] as $classRef) {
$hookObj = &t3lib_div::getUserObj($classRef);
$l = $hookObj->getProcessedValue_postProcessValue($theColConf,$value);
}
}
(issue imported from #M2243)
Files
Updated by Michael Stucki almost 19 years ago
Can someone please provide a patch for this, including a preProcessValue method in case it could be useful?
Updated by JoH almost 19 years ago
Will be implemented during "bug fixing party"
Updated by Sebastian Kurfuerst almost 19 years ago
Hi,
I slightly changed the syntax for the hook, but it is in the core now.
Greets, Sebastian
Actions