19 declare(strict_types=1);
37 CopyrightBridge $copyright_bridge,
38 ControlledRepo $controlled_repo,
39 StandardRepo $standard_repo
48 $slot = SlotIdentifier::tryFrom($vocab_id);
50 return $this->controlled_repo->getVocabulary($vocab_id);
53 $from_copyright = $this->copyright_bridge->vocabulary($slot);
54 if ($from_copyright !==
null) {
55 return $from_copyright;
58 return $this->standard_repo->getVocabulary($slot);
67 foreach ($slots as $slot) {
68 $from_copyright = $this->copyright_bridge->vocabulary($slot);
69 if (!is_null($from_copyright)) {
70 yield $from_copyright;
73 yield
from $this->controlled_repo->getVocabulariesForSlots(...$slots);
74 yield
from $this->standard_repo->getVocabularies(...$slots);
83 foreach ($slots as $slot) {
84 $from_copyright = $this->copyright_bridge->vocabulary($slot);
85 if (!is_null($from_copyright) && $from_copyright->isActive()) {
86 yield $from_copyright;
89 yield
from $this->controlled_repo->getActiveVocabulariesForSlots(...$slots);
90 yield
from $this->standard_repo->getActiveVocabularies(...$slots);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null