19 declare(strict_types=1);
47 ):
Entry\ComponentEntries {
50 throw $this->ef->exception(
Exception\CrawlerException::CRAWL_MAX_NESTING_REACHED,
" Current Path: " . $factoryPath .
" Parent: " . $parent->getId());
52 $entries = $this->parser->parseEntriesFromFile($factoryPath);
54 $children =
new Entry\ComponentEntries();
56 foreach ($entries as $entry) {
57 if ($entry->isAbstract()) {
58 $children->addEntries($this->
crawlFactory($entry->getPath() .
".php", $entry, $depth));
61 $entry->setParent($parent->getId());
62 $parent->addChild($entry->getId());
65 $entries->addEntries($children);
crawlFactory(string $factoryPath, ?Entry\ComponentEntry $parent=null, int $depth=0)
Starts with the factory indicated by factory path and crawles form this point all subsequent factorie...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
EntriesYamlParser $parser