Führe Übungen als Fassungen mit Varianten, Verwendung und Mitgliederausgabe ein
CI Feature / test (push) Successful in 3m32s

Neuer kind 'exercise', Varianten je Fassung, Verwendung (erforderlich/ergänzend) und Variantenauswahl am einbindenden
Mitglied; der Stand schreibt nur gewählte Varianten fest. Änderungsnachweis über structure_hash. Formatierte Anleitung
im Mitgliederbereich und PDF (Fußzeile, Metadaten, Ausgabenachweis, keine gespeicherten Kopien); Sperre trifft nur das
Medium.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-23 16:52:01 +01:00
1 parent ef56befc0e
commit d1f97a351a
26 files changed
+1628 -15

No files matched your search

+9 -1
View File
@@ -19,6 +19,8 @@ public function write(
string $format,
?string $checksum,
string $marking,
?string $copyId = null,
?int $compositionVersionId = null,
): MediaDelivery {
return MediaDelivery::query()->create([
'grant_id' => $grant->id,
@@ -27,10 +29,16 @@ public function write(
'content_element_version_id' => $version->id,
'action' => $action,
'format' => $format,
'copy_id' => 'LK-'.strtoupper(bin2hex(random_bytes(6))),
'copy_id' => $copyId ?? self::newCopyId(),
'composition_version_id' => $compositionVersionId,
'checksum' => $checksum,
'marking' => $marking,
'delivered_at' => now(),
]);
}
public static function newCopyId(): string
{
return 'LK-'.strtoupper(bin2hex(random_bytes(6)));
}
}