[Added] new CMP individualisation to own Model
this is the first step into manifesting "big" CMP's into own Models that require strong individualism partially
Dieser Commit ist enthalten in:
Ursprung
049454a782
Commit
e7d921f20e
19
Application/Model/CMP/ConsentManagementPlatformBaseModel.php
Normale Datei
19
Application/Model/CMP/ConsentManagementPlatformBaseModel.php
Normale Datei
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace D3\GoogleAnalytics4\Application\Model\CMP;
|
||||
|
||||
|
||||
abstract class ConsentManagementPlatformBaseModel extends \OxidEsales\Eshop\Core\Model\BaseModel implements ConsentManagementPlatformInterface
|
||||
{
|
||||
public string $sCMPName;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCMPName(): string
|
||||
{
|
||||
return $this->sCMPName;
|
||||
}
|
||||
}
|
8
Application/Model/CMP/ConsentManagementPlatformInterface.php
Normale Datei
8
Application/Model/CMP/ConsentManagementPlatformInterface.php
Normale Datei
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace D3\GoogleAnalytics4\Application\Model\CMP;
|
||||
|
||||
interface ConsentManagementPlatformInterface
|
||||
{
|
||||
public function getCMPName();
|
||||
}
|
14
Application/Model/CMP/Usercentrics.php
Normale Datei
14
Application/Model/CMP/Usercentrics.php
Normale Datei
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace D3\GoogleAnalytics4\Application\Model\CMP;
|
||||
|
||||
|
||||
use D3\GoogleAnalytics4\Application\Model\ManagerTypes;
|
||||
|
||||
class Usercentrics extends ConsentManagementPlatformBaseModel
|
||||
{
|
||||
const sCMPName = ManagerTypes::USERCENTRICS_MANUALLY;
|
||||
const sAlternatename = ManagerTypes::USERCENTRICS_MODULE;
|
||||
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren