[TYPO3-core] t3lib_BEfunc::getProcessedValue hook fixes
Bernhard Kraft
kraftb at kraftb.at
Fri Nov 17 15:18:35 CET 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi !
No need to worry ...
I did not change much from the old hook parameters - instead I only
"added" some new fields - and set one of it as "pass by reference" (which
will hopefully not break 100 extensions out there :)
In the first hook (preProcess) I did a change - previously the field-TCA config got passed
directly - now I pass it in a sub-key of an array - like in the postProcess hook
And for the postProcess hook i only added parameters:
$params = array(
- - 'value' => $l,
- - 'colConf' => $theColConf
+ 'colConf' => $theColConf,
+ 'table' => $table,
+ 'column' => $col,
+ 'uid' => $uid,
+ 'origValue' => $value,
+ // Passed as reference: Can get modified from hook method
+ 'instantReturn' => &$instantReturn, // Set to instantly return the generated value
+ 'value' => &$l, // Allows to change the value which got rendered
+ 'defaultPassthrough' => &$defaultPassthrough, // Allows to set wheter the value shall get passed through
+ 'fixed_lgd_chars' => &$fixed_lgd_chars, // Allows to set wheter the value shall get passed to t3lib_div::fixed_lgd_cs
);
You see - no changes to the original parameters except that $l gets passed as reference
now ...
I do not know any extension which uses this hook until now ... I could not even
find out who did the change - someone who is more fit with SVN should have a look
at it ...
greets,
Bernhard
- --
- ----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
- ----------------------------------------------------------------------
[[ http://think-open.at | Open source company ]]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFFXcS7Il4dkVkDMFkRAkXQAJ4ggBDRhMlhtpIcPLj1x4M9K92ixQCcCwWD
VBiOei/SwiGG6boH41sUbaw=
=koz8
-----END PGP SIGNATURE-----
More information about the TYPO3-team-core
mailing list