https://t.me/RX1948
Server : Apache
System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64
User : p141464 ( 418825)
PHP Version : 7.4.33.12
Disable Function : NONE
Directory :  /html/relaunch-kmu/wp-content/plugins/real-cookie-banner/inc/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //html/relaunch-kmu/wp-content/plugins/real-cookie-banner/inc/templates/BlockerStorage.php
<?php

namespace DevOwl\RealCookieBanner\templates;

use DevOwl\RealCookieBanner\Vendor\DevOwl\ServiceCloudConsumer\consumer\ServiceCloudConsumer;
use DevOwl\RealCookieBanner\Vendor\DevOwl\ServiceCloudConsumer\storages\AbstractStorage;
use DevOwl\RealCookieBanner\Vendor\DevOwl\ServiceCloudConsumer\templates\BlockerTemplate;
// @codeCoverageIgnoreStart
\defined('ABSPATH') or die('No script kiddies please!');
// Avoid direct file request
// @codeCoverageIgnoreEnd
/**
 * This storage persists and reads content blocker templates from `wp_rcb_template` database table.
 *
 * The database table itself does not reflect all available properties in own columsn, instead only the
 * important one. The complete template JSON will be saved in a serialized column so it can be restored.
 * @internal
 */
class BlockerStorage extends AbstractStorage
{
    private $helper;
    /**
     * C'tor.
     *
     * @param ServiceCloudConsumer $consumer
     */
    public function __construct($consumer)
    {
        parent::__construct($consumer);
        $this->helper = new \DevOwl\RealCookieBanner\templates\StorageHelper($this);
    }
    // Documented in AbstractStorage
    public function retrieve($forceInvalidate)
    {
        return $this->helper->retrieveBy(null, null, 'after', $forceInvalidate);
    }
    // Documented in AbstractStorage
    public function retrieveBy($field, $value, $forceInvalidate)
    {
        return $this->helper->retrieveBy($field, $value, 'after', $forceInvalidate);
    }
    // Documented in AbstractStorage
    public function persist($templates)
    {
        $this->helper->persist($templates, function ($template) {
            /**
             * Service template.
             *
             * @var BlockerTemplate
             */
            $template = $template;
            return ['extendsIdentifier' => $template->extendsIdentifier, 'ruleGroups' => \is_array($template->ruleGroups) ? $template->ruleGroups : [], 'rules' => \is_array($template->rules) ? $template->rules : []];
        });
    }
    // Documented in AbstractStorage
    public function shouldInvalidate()
    {
        return $this->helper->shouldInvalidate();
    }
    /**
     * Getter.
     */
    public function getHelper()
    {
        return $this->helper;
    }
}

https://t.me/RX1948 - 2025