protected function setDefaults()
    {
        if (!isset($this->contentOptions['category']) 
                || (isset($this->contentOptions['category']) 
                        && empty($this->contentOptions['category']))) {
            $this->contentOptions['category'] = 'app';
        }
        if (!isset($this->contentOptions['mainParams'])) {
            $this->contentOptions['mainParams'] = [];
        }
        if (!isset($this->contentOptions['buttonParams'])) {
            $this->contentOptions['buttonParams'] = [];
        }
        if (!isset($this->contentOptions['language'])) {
            $this->contentOptions['language'] = null;
        }
        if (!isset($this->contentOptions['mainMessage'])) {
            $this->contentOptions['mainMessage'] = 'We use cookies on our websites to help us offer you the best online experience. By continuing to use our website, you are agreeing to our use of cookies. Alternatively, you can manage them in your browser settings.';
        }
        if (!isset($this->contentOptions['buttonMessage'])) {
            $this->contentOptions['buttonMessage'] = 'I understand';
        }
        if (!isset($this->cookieOptions['path'])) {
            $this->cookieOptions['path'] = '/';
        }
        if (!isset($this->cookieOptions['expires'])) {
            $this->cookieOptions['expires'] = 30;
        }
        if (!isset($this->cookieOptions['secure'])) {
            $this->cookieOptions['secure'] = false;
        }
        if (!isset($this->classOptions['classOuter'])) {
            $this->classOptions['classOuter'] = 'CookieMonsterBox';
        }
        if (!isset($this->classOptions['classInner'])) {
            $this->classOptions['classInner'] = '';
        }
        if (!isset($this->classOptions['classButton'])) {
            $this->classOptions['classButton'] = 'CookieMonsterOk';
        }
    }
protected function setDefaults()
    {
        if (!isset($this->contentOptions['category']) 
                || (isset($this->contentOptions['category']) 
                        && empty($this->contentOptions['category']))) {
            $this->contentOptions['category'] = 'app';
        }
        if (!isset($this->contentOptions['mainParams'])) {
            $this->contentOptions['mainParams'] = [];
        }
        if (!isset($this->contentOptions['buttonParams'])) {
            $this->contentOptions['buttonParams'] = [];
        }
        if (!isset($this->contentOptions['language'])) {
            $this->contentOptions['language'] = null;
        }
        if (!isset($this->contentOptions['mainMessage'])) {
            $this->contentOptions['mainMessage'] = 'We use cookies on our websites to help us offer you the best online experience. By continuing to use our website, you are agreeing to our use of cookies. Alternatively, you can manage them in your browser settings.';
        }
        if (!isset($this->contentOptions['buttonMessage'])) {
            $this->contentOptions['buttonMessage'] = 'I understand';
        }
        if (!isset($this->cookieOptions['path'])) {
            $this->cookieOptions['path'] = '/';
        }
        if (!isset($this->cookieOptions['expires'])) {
            $this->cookieOptions['expires'] = 30;
        }
        if (!isset($this->cookieOptions['secure'])) {
            $this->cookieOptions['secure'] = false;
        }
        if (!isset($this->classOptions['classOuter'])) {
            $this->classOptions['classOuter'] = 'CookieMonsterBox';
        }
        if (!isset($this->classOptions['classInner'])) {
            $this->classOptions['classInner'] = '';
        }
        if (!isset($this->classOptions['classButton'])) {
            $this->classOptions['classButton'] = 'CookieMonsterOk';
        }
    }
protected function setDefaults ( ) { if ( ! isset ( $ this -> contentOptions [ 'category' ] ) || ( isset ( $ this -> contentOptions [ 'category' ] ) && empty ( $ this -> contentOptions [ 'category' ] ) ) ) { $ this -> contentOptions [ 'category' ] = 'app' ; } if ( ! isset ( $ this -> contentOptions [ 'mainParams' ] ) ) { $ this -> contentOptions [ 'mainParams' ] = [ ] ; } if ( ! isset ( $ this -> contentOptions [ 'buttonParams' ] ) ) { $ this -> contentOptions [ 'buttonParams' ] = [ ] ; } if ( ! isset ( $ this -> contentOptions [ 'language' ] ) ) { $ this -> contentOptions [ 'language' ] = null ; } if ( ! isset ( $ this -> contentOptions [ 'mainMessage' ] ) ) { $ this -> contentOptions [ 'mainMessage' ] = 'We use cookies on our websites to help us offer you the best online experience. By continuing to use our website, you are agreeing to our use of cookies. Alternatively, you can manage them in your browser settings.' ; } if ( ! isset ( $ this -> contentOptions [ 'buttonMessage' ] ) ) { $ this -> contentOptions [ 'buttonMessage' ] = 'I understand' ; } if ( ! isset ( $ this -> cookieOptions [ 'path' ] ) ) { $ this -> cookieOptions [ 'path' ] = '/' ; } if ( ! isset ( $ this -> cookieOptions [ 'expires' ] ) ) { $ this -> cookieOptions [ 'expires' ] = 30 ; } if ( ! isset ( $ this -> cookieOptions [ 'secure' ] ) ) { $ this -> cookieOptions [ 'secure' ] = false ; } if ( ! isset ( $ this -> classOptions [ 'classOuter' ] ) ) { $ this -> classOptions [ 'classOuter' ] = 'CookieMonsterBox' ; } if ( ! isset ( $ this -> classOptions [ 'classInner' ] ) ) { $ this -> classOptions [ 'classInner' ] = '' ; } if ( ! isset ( $ this -> classOptions [ 'classButton' ] ) ) { $ this -> classOptions [ 'classButton' ] = 'CookieMonsterOk' ; } }
Sets default values.
Sets default values .