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

Oliver Hader oliver at typo3.org
Mon Aug 3 19:50:37 CEST 2009


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




More information about the TYPO3-dev mailing list