ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
LinkItemRenderer.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
31 {
35  protected function getSpecificComponentForItem(isItem $item): Component
36  {
40  $link = $this->ui->factory()->link()->bulky(
41  $this->buildIcon($item),
42  $item->getTitle(),
43  $this->getURI($item->getAction())
44  );
45 
46  if (null !== $item->getContentLanguage()) {
47  $link = $link->withContentLanguage($item->getContentLanguage());
48  }
49 
50  if (null !== $item->getLanguageForTargetedResource()) {
51  return $link->withLanguageOfReferencedContent($item->getLanguageForTargetedResource());
52  }
53 
54  return $link;
55  }
56 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null