mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
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)
|
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)
|
||||||
|
@ -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}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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]))
|
||||||
|
@ -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);
|
||||||
|
@ -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]))
|
||||||
|
@ -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");
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user