[TYPO3-dev] problems in many extensions
Martin Kutschker
Martin.Kutschker at n0spam-blackbox.net
Mon Jul 9 18:03:30 CEST 2007
Tapio Markula schrieb:
> 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?
This is just passing $this (within the scope of an object) to the function
functionCall, so it will (and must) work.
> What about
>
> function functionCall(&$this)
>
> as reference to used $this?
>
> that would be nice in hooks.
Why do you need to call an argument this?
function functionCall(&$passedObject)
Masi
More information about the TYPO3-dev
mailing list