[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TYPO3-dev] Objects passed explicitely by reference in WorkspaceSelector



Hi Fabrizio,

Fabrizio Branca schrieb:
> Hi there,
> 
> is there a reason why objects are passed by reference explicitely in
> class WorkspaceSelector (and in interface backend_toolbarItem)?
> 
> public function toggleWorkspacePreview($parameters = array(), TYPO3AJAX
> &$ajaxObj = null) { [...]

I guess that these kind of code fragements are from the time when we
still supported PHP4. In PHP5 all objects are references and thus you're
right that using the reference operator here does not make any sense.

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3
_______________________________________________
TYPO3-dev mailing list
[email protected]
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev