[Typo3-dev] atag_to_http

Chi Hoang hoang at planb-media.de
Fri Sep 19 17:53:23 CEST 2003


> Chi wrote:
> Why cant I debug this function:
>
>      user_plaintext::atag_to_http  (  $  content,
>      $  conf
>    )
> Definition at line 123 of file plaintextLib.inc?
> I need this to remove the "(Link: ...)" text in plaintext Newsletter
> send by direct mail. When I place a debug () call in this function I
> got no output! Help!


I did it! Problem was that the name of the class is user_plaintext and the
filename(!) is plaintextLib.inc. Before I wrote a class like this: class
ux_user_plaintext extends user_plaintext { blablabla } and saved it as
ux_plaintextLib.inc(!). Now all extension works fine as long as typo 3 dont
use user_plaintext->atag_to_http to call a function. Why that? Because
callUserFunction() looks in localconf.php if there is a function with
prepended "tx_", now I did registered with ux_plaintextLib.inc and therefore
my new class atag_to_http is not called by user_plaintext->atag_to_http! It
is still strange to me why my other functions still work with the wrong
filename (ux_plaintextLib.inc). Maybe this is something Kaspar has to
informed to, to me it seems not straight forward! What do you think?

Thanks to all,

Greetings,

Chi

P.S.: Here is a very, very nice class hierarchy
http://typo3doku.ueckermann.de/. It helps me a lot!






More information about the TYPO3-dev mailing list