remove reference from $obj =& new obj() constructs, to get ride of depricated warnings in php5.3

This commit is contained in:
Ralf Becker 2010-01-07 23:44:33 +00:00
parent 65aa5f8740
commit d9d303db6d
7 changed files with 9 additions and 9 deletions

View File

@ -36,7 +36,7 @@ class legacyXajax extends xajax {
} }
function registerExternalFunction($mFunction, $sInclude) function registerExternalFunction($mFunction, $sInclude)
{ {
$xuf =& new xajaxUserFunction($mFunction, $sInclude); $xuf = new xajaxUserFunction($mFunction, $sInclude);
$this->register(XAJAX_FUNCTION, $xuf); $this->register(XAJAX_FUNCTION, $xuf);
} }
function registerCatchAllFunction($mFunction) function registerCatchAllFunction($mFunction)

View File

@ -115,7 +115,7 @@ class xajaxCallableObject
if ($sClass == $sMethodName) if ($sClass == $sMethodName)
$bInclude = false; $bInclude = false;
if ($bInclude) if ($bInclude)
$aRequests[strtolower($sMethodName)] =& $aRequests[strtolower($sMethodName)] =
new xajaxRequest("{$sXajaxPrefix}{$sClass}.{$sMethodName}"); new xajaxRequest("{$sXajaxPrefix}{$sClass}.{$sMethodName}");
} }

View File

@ -121,7 +121,7 @@ class xajaxCallableObjectPlugin extends xajaxRequestPlugin
//EndSkipDebug //EndSkipDebug
if (false === is_a($xco, 'xajaxCallableObject')) if (false === is_a($xco, 'xajaxCallableObject'))
$xco =& new xajaxCallableObject($xco); $xco = new xajaxCallableObject($xco);
if (2 < count($aArgs)) if (2 < count($aArgs))
if (is_array($aArgs[2])) if (is_array($aArgs[2]))

View File

@ -127,7 +127,7 @@ class xajaxEventPlugin extends xajaxRequestPlugin
if (false === isset($this->aEvents[$sEvent])) if (false === isset($this->aEvents[$sEvent]))
{ {
$xe =& new xajaxEvent($sEvent); $xe = new xajaxEvent($sEvent);
if (2 < count($aArgs)) if (2 < count($aArgs))
if (is_array($aArgs[2])) if (is_array($aArgs[2]))
@ -151,7 +151,7 @@ class xajaxEventPlugin extends xajaxRequestPlugin
$xuf =& $aArgs[2]; $xuf =& $aArgs[2];
if (false === is_a($xuf, 'xajaxUserFunction')) if (false === is_a($xuf, 'xajaxUserFunction'))
$xuf =& new xajaxUserFunction($xuf); $xuf = new xajaxUserFunction($xuf);
$objEvent =& $this->aEvents[$sEvent]; $objEvent =& $this->aEvents[$sEvent];
$objEvent->addHandler($xuf); $objEvent->addHandler($xuf);

View File

@ -132,7 +132,7 @@ class xajaxFunctionPlugin extends xajaxRequestPlugin
$xuf =& $aArgs[1]; $xuf =& $aArgs[1];
if (false === is_a($xuf, 'xajaxUserFunction')) if (false === is_a($xuf, 'xajaxUserFunction'))
$xuf =& new xajaxUserFunction($xuf); $xuf = new xajaxUserFunction($xuf);
if (2 < count($aArgs)) if (2 < count($aArgs))
if (is_array($aArgs[2])) if (is_array($aArgs[2]))

View File

@ -240,7 +240,7 @@ class xajaxScriptPlugin extends xajaxRequestPlugin
if ('style' == $this->sRequest) if ('style' == $this->sRequest)
$sType = 'text/css'; $sType = 'text/css';
$objResponse =& new xajaxCustomResponse($sType); $objResponse = new xajaxCustomResponse($sType);
foreach ($aSections as $sSection) foreach ($aSections as $sSection)
$objResponse->append($sSection . "\n"); $objResponse->append($sSection . "\n");

View File

@ -357,7 +357,7 @@ class xajax
$xuf =& $aArgs[2]; $xuf =& $aArgs[2];
if (false == is_a($xuf, 'xajaxUserFunction')) if (false == is_a($xuf, 'xajaxUserFunction'))
$xuf =& new xajaxUserFunction($xuf); $xuf = new xajaxUserFunction($xuf);
$this->aProcessingEvents[$sEvent] =& $xuf; $this->aProcessingEvents[$sEvent] =& $xuf;
@ -1302,7 +1302,7 @@ class xajax
*/ */
function registerFunction($mFunction, $sIncludeFile=null) function registerFunction($mFunction, $sIncludeFile=null)
{ {
$xuf =& new xajaxUserFunction($mFunction, $sIncludeFile); $xuf = new xajaxUserFunction($mFunction, $sIncludeFile);
return $this->register(XAJAX_FUNCTION, $xuf); return $this->register(XAJAX_FUNCTION, $xuf);
} }