[TYPO3] Persistent vars over multiple calls of postUserFunc

Joerg Wagner news.netfielders.de at digilog.de
Sat Sep 27 15:17:04 CEST 2008


Thanks Francois,
this is exactly what I searched for!

Cheers,
Jörg.


Francois Suter schrieb:
> Hi,
> 
>> So I tried using a class property, but this does not work:
>>
>> -- 
>> class user_functions{
>>   var $myClassVar = 0;
> 
> Nearly there :-)
> 
> What you want is a static property:
> 
> static $myClassVar = 0;
> 
> which you then call using:
> 
> self::$myClassVar
> 
> HTH
> 


More information about the TYPO3-english mailing list