27 parent::__construct($dic);
28 $this->top_item = $this->
if->identifier(
'rep');
52 return [$this->mainmenu->topParentItem($this->
getTopItem())
53 ->withTitle($this->dic->language()->txt(
"repository"))
55 ->withVisibilityCallable(
56 function () use (
$dic) {
57 return (
bool) (
$dic->access()->checkAccess(
'visible',
'', ROOT_FOLDER_ID));
72 $nd =
$dic[
'tree']->getNodeData(ROOT_FOLDER_ID);
73 $title = (
$nd[
"title"] ===
"ILIAS" ?
$dic->language()->txt(
"repository") :
$nd[
"title"]);
79 return $title .
" - " .
$dic->language()->txt(
"rep_main_page");
82 $action =
function () :
string {
92 $entries[] = $this->mainmenu->link($this->
if->identifier(
'rep_main_page'))
98 $links =
function () : array {
100 if (isset($this->dic[
'ilNavigationHistory'])) {
101 $items = $this->dic[
'ilNavigationHistory']->getItems();
108 foreach ($items as $k => $item) {
113 if (!isset($item[
"ref_id"]) || !isset(
$_GET[
"ref_id"])
114 || ($item[
"ref_id"] !=
$_GET[
"ref_id"] || !$first)
117 $icon =
ilUtil::img(ilObject::_getIcon($obj_id,
"tiny"), $this->dic->language()->txt(
"obj_".
120 $links[] = $this->mainmenu->link($this->
if->identifier(
'last_visited_' . $obj_id))
121 ->withTitle($icon .
" " . $ititle)
122 ->withAction($item[
"link"]);
129 $entries[] = $this->mainmenu->linkList($this->
if->identifier(
'last_visited'))
131 ->withTitle($this->dic->language()->txt(
'last_visited'))
132 ->withParent($this->
getTopItem())->withVisibilityCallable(
133 function () use (
$dic) {
134 return (
$dic->user()->getId() != ANONYMOUS_USER_ID);
static shortenText( $a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
__construct(\ILIAS\DI\Container $dic)
ilRepositoryGlobalScreenProvider constructor.
Interface IdentificationInterface.
static _getStaticLink( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
Interface StaticMainMenuProvider.
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
static _lookupObjId($a_id)
static img($a_src, $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
static _lookupType($a_id, $a_reference=false)
lookup object type
getTopItem()
Some other components want to provide Items for the main menu which are located at the PD TopTitem by...
Class ilRepositoryGlobalScreenProvider.