The register of the databases of this machine that hold a client's data NOT anonymised (ISO/IEC 27001 A.8.33, A.8.11): who restored it, why, until when. backup --restore-locally anonymises by default (BackupTask); --plain restores in clear only with a reason and an end date, and writes it here.
class MMO\admin\helpers\PlainCopies
use MMO\core\classes\tSingleton
`local-copies` lists the databases of this machine against it: anonymised, plain and registered (expired or not), plain
and unregistered -- the copies to drop, by a person.
The file is this machine's (`{root}/db/plain-copies.json`, not versioned): what is on its disk.
PlainCopies::Shared()->register('kuehnenagel', 'kuehnenagel', 'reproduce the bug #412 on its data', '2026-11-25');
PlainCopies::Shared()->expired(); // the entries past their date: drop those databases
The databases of this machine, each with its state: anonymised (its marker), fictitious ($fictitious), registered (a plain copy of the register, expired past its date), unregistered …
(Re)create the shared instance immediately, configured with $config merged into the class's existing config.
static function Instantiate(array $config = []): staticUnlike a plain [`Shared()`](https://mmoframework.fr/en/documentation/mmo.admin/php/helpers/PlainCopies.md#plaincopies-shared) call (which lazily builds the instance from whatever config was already loaded),
this lets you supply/override config right before the instance is built.
The databases of this machine, each with its state: anonymised (its marker), fictitious ($fictitious), registered (a plain copy of the register, expired past its date), unregistered (a client's data in clear no one answers for)
array{state: string, entry?: array<string, string>, marker?: array<string, mixed>}> by database; the entries of the register whose database is gone too (gone)
Remove the shared instance, so the next Shared() call creates a fresh one.
static function Unshare(bool $serialize = true): bool
See
serialize) and kept as the class's config, so the next instance created picks up where this one left off; if false, the instance is simply discarded and the next one starts from the class's original config