Optimize schema objectclass processing, changing debugging output, remove redundant functions

This commit is contained in:
2025-06-12 13:01:05 +09:30
parent 56fcd729e7
commit acf19cdc5b
5 changed files with 262 additions and 417 deletions

View File

@@ -35,10 +35,10 @@
<td>@lang('Inherits from')</td>
<td colspan="3">
<strong>
@if($o->sup->count() === 0)
@if($o->sup_classes->count() === 0)
@lang('(none)')
@else
@foreach($o->sup as $sup)
@foreach($o->sup_classes as $sup)
@if($loop->index)</strong> <strong>@endif
<a class="objectclass" id="{{ strtolower($sup) }}" href="#{{ strtolower($sup) }}">{{ $sup }}</a>
@endforeach
@@ -53,10 +53,10 @@
<strong>
@if(strtolower($o->name) === 'top')
<a class="objectclass" id="-all-">(all)</a>
@elseif(! $o->getChildObjectClasses()->count())
@elseif(! $o->child_classes->count())
@lang('(none)')
@else
@foreach($o->getChildObjectClasses() as $childoc)
@foreach($o->child_classes as $childoc)
@if($loop->index)</strong> <strong>@endif
<a class="objectclass" id="{{ strtolower($childoc) }}" href="#{{ strtolower($childoc) }}">{{ $childoc }}</a>
@endforeach