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)
{
$xuf =& new xajaxUserFunction($mFunction, $sInclude);
$xuf = new xajaxUserFunction($mFunction, $sInclude);
$this->register(XAJAX_FUNCTION, $xuf);
}
function registerCatchAllFunction($mFunction)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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