Project

General

Profile

Actions

Feature #15399

closed

Hook needed in class.t3lib_befunc.php, function getProcessedValue

Added by old_heldenschreck almost 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
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

class.t3lib_befunc.php.diff (339 KB) class.t3lib_befunc.php.diff Administrator Admin, 2006-01-18 22:19
Actions #1

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?

Actions #2

Updated by JoH almost 19 years ago

Will be implemented during "bug fixing party"

Actions #3

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

Also available in: Atom PDF