add own cookie-check method; rm unnecessary help-text

This commit is contained in:
2023-02-01 15:32:28 +01:00
committed by MaxBuhe01
parent 55bd7b7fb4
commit 1589f202a9
3 changed files with 17 additions and 8 deletions

View File

@ -35,6 +35,22 @@ class ViewConfig extends ViewConfig_parent
return $this->sContainerId;
}
/**
* @param $sCookieID
* @return bool
*/
public function D3blAcceptedCookie($sCookieID)
{
$oSession = Registry::getSession();
$aCookies = $oSession->getVariable("aCookieSel");
if (!is_null($aCookies) && is_array($aCookies) && array_key_exists($sCookieID, $aCookies) && $aCookies[$sCookieID] == "1") {
return true;
}
return false;
}
private $blGA4enabled = null;
public function isGA4enabled()