<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webexmachina / contao-personal-data-manager example snippets
use WEM\PersonalDataManagerBundle\Model\Traits\PersonalDataTrait as PDMTrait;
class MyModel
{
use PDMTrait;
/** @var array Fields to be managed by the Personal Data Manager */
protected static $personalDataFieldsNames = ['myField'];
/** @var array Default values for fields to be managed by the Personal Data Manager */
protected static $personalDataFieldsDefaultValues = ['myField' => 'managed_by_pdm'];
/** @var array Values for fields to be managed by the Personal Data Manager when anonymized */
protected static $personalDataFieldsAnonymizedValues = ['myField' => 'Anonymized'];
/** @var string Field to be used as pid by the Personal Data Manager */
protected static $personalDataPidField = 'id';
/** @var string Field to be used as email by the Personal Data Manager */
protected static $personalDataEmailField = 'email';
/** @var string ptable to be used by the Personal Data Manager */
protected static $personalDataPtable = 'tl_my_table';
declare(strict_types=1);
namespace Your\Namespace;
use WEM\PersonalDataManagerBundle\Dca\Driver\PDMDCTableTrait;
class DC_Table extends \Contao\DC_Table
{
use PDMDCTableTrait;
}