Quellübung mit stabiler Kennung und Inhaltswert, genau ein Stand je Prüfsumme, bewusste Übernahme als neue lokale Fassung, lokale Ergänzungen bleiben erhalten, Ausblenden an der Quelle setzt nur die Verfügbarkeit. Seite Übernahme (Shinkan), Feldzuordnung, ADR-49 (inklusive Abweichung bei der Mediensperre), Abnahmestand und Rückfallverfahren. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
60 lines
1.4 KiB
PHP
60 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace App\Domain\Catalog;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
class ContentElement extends Model
|
|
{
|
|
protected $fillable = [
|
|
'kind',
|
|
'output_class',
|
|
'working_title',
|
|
'display_title',
|
|
'teaser',
|
|
'description',
|
|
'usage_note',
|
|
'license_note',
|
|
'website_credit',
|
|
'website_alt',
|
|
'website_released_at',
|
|
'website_public_path',
|
|
'summary',
|
|
'search_terms',
|
|
'thumbnail_path',
|
|
'thumbnail_alt',
|
|
'thumbnail_source',
|
|
'thumbnail_error',
|
|
'preview_path',
|
|
'editorial_content_kind_id',
|
|
'archived_at',
|
|
'source_ref',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'archived_at' => 'datetime',
|
|
'website_released_at' => 'datetime',
|
|
];
|
|
}
|
|
|
|
public function editorialContentKind(): BelongsTo
|
|
{
|
|
return $this->belongsTo(EditorialContentKind::class);
|
|
}
|
|
|
|
public function versions(): HasMany
|
|
{
|
|
return $this->hasMany(ContentElementVersion::class);
|
|
}
|
|
|
|
public function pillars(): BelongsToMany
|
|
{
|
|
return $this->belongsToMany(Pillar::class)->orderBy('pillars.name');
|
|
}
|
|
}
|