Implement Entry Copy/Move

This commit is contained in:
2025-07-03 20:42:14 +08:00
parent 73f66eb282
commit 86fad448b1
8 changed files with 305 additions and 8 deletions

View File

@@ -92,11 +92,12 @@ class Entry extends Model
public function getAttributes(): array
{
return $this->objects
->filter(fn($item)=>(! $item->is_internal))
->flatMap(fn($item)=>
($item->no_attr_tags)
$item->no_attr_tags
? [strtolower($item->name)=>$item->values]
: $item->values
->flatMap(fn($v,$k)=>[strtolower($item->name.($k !== self::TAG_NOTAG ? ';'.$k : ''))=>$v]))
->flatMap(fn($v,$k)=>[strtolower($item->name.(($k !== self::TAG_NOTAG) ? ';'.$k : ''))=>$v]))
->toArray();
}