_iProfileId) return ''; $aCached = $this->_getCachedData(); $aParams = array_merge(array( 'sActionsUrl' => BX_DOL_URL_ROOT . 'live_updates.php', 'sObjName' => $this->_sJsObject, 'iInterval' => $this->_iInterval, 'aSystemsActive' => array_intersect_key($aCached, array_flip($this->_aSystemsActive)), 'bServerRequesting' => !empty($this->_aSystems) ), $aParams); $sContent = "var " . $this->_sJsObject . " = new " . $this->_sJsClass . "(" . json_encode($aParams) . ");"; $oTemplate = BxDolTemplate::getInstance(); $oTemplate->addJs(array('BxDolLiveUpdates.js')); return $oTemplate->_wrapInTagJsCode($sContent); } } /** @} */