19 declare(strict_types=1);
46 return $this->id_factory->identifier(uniqid(
'',
true));
65 foreach ($this->groups_repository->all() as $group) {
66 if ($group->isCore()) {
69 if (!$group->isActive()) {
72 $groups[] = $this->item_factory->group(
73 $this->dic->globalScreen()->identification()->fromSerializedIdentification($group->getId()),
85 foreach ($this->entries_repository->all() as $entry) {
86 if ($entry->isCore()) {
89 if (!$entry->isActive()) {
93 $action =
new URI($entry->getAction());
98 $entries[] = $this->item_factory->link(
99 $this->dic->globalScreen()->identification()->fromSerializedIdentification($entry->getId()),
102 $this->dic->globalScreen()->identification()->fromSerializedIdentification($entry->getParent())
105 )->withOpenInNewViewport($entry->isExternal());
113 $request = $this->dic->http()->request()->getUri();
114 return new URI($request->getScheme() .
'://' . $request->getHost() .
'/' . ltrim($from_path,
'/'));
128 private function txt(
string $key): string
130 return $this->dic->language()->txt($key);
database()
Get interface to the Database.
Interface IdentificationInterface.
Customizing of pimple-DIC for ILIAS.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(Container $dic, ilPlugin $plugin)