[TYPO3-dev] problems in many extensions

ries van Twisk typo3 at rvt.dds.nl
Mon Jul 9 18:04:38 CEST 2007


	From: 	  ries at rvt.dds.nl
	Subject: 	Re: [TYPO3-dev] problems in many extensions
	Date: 	July 9, 2007 11:03:48 AM GMT-05:00
	To: 	  typo3-dev at lists.netfielders.de


On Jul 9, 2007, at 8:58 AM, Tapio Markula wrote:


> Steffen Kamper kirjoitti:
>
>> Thanks ries,
>> i didn't described it very well.
>> Absolutely right, never use  function xyz($this) ...
>>
>> vg  Steffen
>>
>> "ries van Twisk" <typo3 at rvt.dds.nl> schrieb im Newsbeitrag
>> news:mailman.4993.1183986895.29892.typo3-dev at lists.netfielders.de...
>>
>>> Hey steffen,
>>>
>>> I have read about that indeed, But I am a php4/php5..x1 user  
>>> still :)
>>>
>>> Just to clarify and from what I understood:
>>>
>>> You cannot declare a function like this anymore:
>>>
>>> function xyz($this) {
>>> ......
>>> }
>>>
>
> but $hookObj = functionCall($this);
>
> still works?
>

That should still work, it basically means passing the object to a  
function for feature usage in the function.
This basicly HAS to work otherwise copy-constructors style functions  
cannot work.


>
> What about
>
> function functionCall(&$this)
>
> as reference to used $this?
>

That cannot work, in the above case &$this needs to be renamed to  
something else, for example &$that or any better sensible name.

Ries



>
> that would be nice in hooks.
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>






More information about the TYPO3-dev mailing list