8 require_once(CH_DIRECTORY_PATH_CLASSES .
'ChWsbConfig.php');
28 $this->_sSessionKeyOpen =
'ch_sctr_open';
29 $this->_sSessionKeyData =
'ch_sctr_data';
30 $this->_sSessionDataDivider =
'#';
31 $this->_aJsClasses = array(
'main' =>
'ChSctrMain');
32 $this->_aJsObjects = array(
'main' =>
'oChSctrMain');
40 $this->_bEnabled =
getParam(
'ch_sctr_enable') ==
'on';
46 return $this->_bEnabled && in_array(
$oSysTemplate->getCode(), array(
'uni',
'alt',
'evo'));
56 return (
int)$this->_oSession->getValue($this->
getOpenKey()) != 0;
61 $this->_oSession->setValue($this->
getOpenKey(), 1);
66 $this->_oSession->unsetValue($this->
getOpenKey());
78 return !
empty($sData);
84 return explode($this->_sSessionDataDivider, $sData);
89 $sData = implode($this->_sSessionDataDivider, $aData);
103 return $this->_aJsClasses[
$sType];
111 return $this->_aJsObjects[
$sType];