protected function isAjaxCall() { static $bIsAjaxCall; // rest of code can be executed only one time if (!is_null($bIsAjaxCall)) { return $bIsAjaxCall; } $oXajax = new LXajax(); if (!$oXajax->canProcessRequest()) { return $bIsAjaxCall = false; } $oXajax->processRequest(); return $bIsAjaxCall = true; }
public function __construct($sRequestURI = null, $sLanguage = null, $aConfig = array()) { if (is_null(self::$oXajax)) { self::$oXajax = new xajax($sRequestURI, $sLanguage); self::$oXajax->configure('javascript URI', '/lib/xajax/'); self::$oXajax->configure('statusMessages', true); self::$oXajax->configure('exitAllowed', false); //self::$oXajax->configure( 'debug', true ); foreach ($aConfig as $sName => $mValue) { self::$oXajax->configure($sName, $mValue); } } }
public function __construct($sRequestURI = null, $sLanguage = null) { if (is_null(self::$oXajax)) { self::$oXajax = new xajax($sRequestURI, $sLanguage); } }