[Typo3-dev] User extension of class.t3lib_div.php
Ingmar Schlecht
ingmars at REMOVETHISweb.de
Tue Sep 2 14:14:25 CEST 2003
Christian Jul Jensen wrote:
> Hi
>
> I'm writing an extension that enhances the 'plainMailEncoded' function
> in t3lib_div, to also encode the headers of the mail, useful if you have
> weird characters in your language like æ, ø and å :)
>
> The problem with this is that t3lib_div also provides the makeInstance
> function that checks for user extensions of classes, in other words the
> class is instantiated without checking for any user extension.
No, t3lib_div is AFAIK never instantiated. Tthe functions are always
called directly like this: "t3lib_div::doSomthing();", so no extension
class would be used anyway.
...which makes this suggestion obsolete:
> Maybe makeInstance should be moved to a class for itself in future
> releases, in order to avoid this problem.
"Solution" would be to hardcode it into the t3lib_div PHP-file or
otherwise provide a completely independant class and call it like
tx_yourext_div::doSomething().
- Ingmar
More information about the TYPO3-dev
mailing list