forked from extern/egroupware
remove reference from $obj =& new obj() constructs, to get ride of depricated warnings in php5.3
This commit is contained in:
parent
65aa5f8740
commit
d9d303db6d
@ -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)
|
||||
|
@ -115,7 +115,7 @@ class xajaxCallableObject
|
||||
if ($sClass == $sMethodName)
|
||||
$bInclude = false;
|
||||
if ($bInclude)
|
||||
$aRequests[strtolower($sMethodName)] =&
|
||||
$aRequests[strtolower($sMethodName)] =
|
||||
new xajaxRequest("{$sXajaxPrefix}{$sClass}.{$sMethodName}");
|
||||
}
|
||||
|
||||
|
@ -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]))
|
||||
|
@ -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);
|
||||
|
@ -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]))
|
||||
|
@ -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");
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user