ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
DerivedTaskMainBarProvider.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\Tasks\DerivedTasks\Provider
;
20
21
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
;
22
use
ILIAS\MainMenu\Provider\StandardTopItemsProvider
;
23
use
ILIAS\UI\Component\Symbol\Icon\Standard
;
24
use
ilDerivedTasksGUI
;
25
31
class
DerivedTaskMainBarProvider
extends
AbstractStaticMainMenuProvider
32
{
36
public
function
getStaticTopItems
(): array
37
{
38
return
[];
39
}
40
41
45
public
function
getStaticSubItems
(): array
46
{
47
$dic
=
$this->dic
;
48
49
$title = $this->dic->
language
()->txt(
"mm_task_derived_tasks"
);
50
$icon = $this->dic->ui()->factory()->symbol()->icon()->standard(Standard::TASK, $title);
51
52
// derived tasks list
53
$entries[] = $this->mainmenu->link($this->
if
->identifier(
'mm_derived_task_list'
))
54
->
withTitle
($title)
55
->withPosition(40)
56
->withSymbol($icon)
57
->withAction(
$dic
->
ctrl
()->getLinkTargetByClass([ilDerivedTasksGUI::class],
""
))
58
->
withParent
(StandardTopItemsProvider::getInstance()->getPersonalWorkspaceIdentification())
59
->
withVisibilityCallable
(
60
fn ():
bool
=> true
61
);
62
63
return
$entries;
64
}
65
}
ilDerivedTasksGUI
StandardTopItemsProvider
ILIAS\Tasks\DerivedTasks\Provider
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
DerivedTaskMainBarProvider.php:19
Standard
ILIAS\Tasks\DerivedTasks\Provider\DerivedTaskMainBarProvider
Main menu entry for derived tasks.
Definition:
DerivedTaskMainBarProvider.php:31
if
if(!file_exists('../ilias.ini.php'))
Definition:
sessioncheck.php:23
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Interface StaticMainMenuProvider.
Definition:
AbstractStaticMainMenuProvider.php:32
AbstractStaticMainMenuProvider
ILIAS\GlobalScreen\Scope\withVisibilityCallable
withVisibilityCallable(callable $is_visible)
Definition:
VisibilityAvailabilityTrait.php:35
ILIAS\Tasks\DerivedTasks\Provider\DerivedTaskMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
DerivedTaskMainBarProvider.php:45
ILIAS\DI\Container\language
language()
Get interface to the i18n service.
Definition:
Container.php:95
ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle
withTitle(string $title)
Definition:
hasTitleTrait.php:35
ILIAS\Tasks\DerivedTasks\Provider\DerivedTaskMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
DerivedTaskMainBarProvider.php:36
ILIAS\GlobalScreen\Scope\Footer\Factory\withParent
withParent(IdentificationInterface $identification)
Definition:
canHaveParentTrait.php:42
ILIAS\DI\Container\ctrl
ctrl()
Get the interface to the control structure.
Definition:
Container.php:63
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic
Container $dic
Definition:
AbstractStaticMainMenuProvider.php:34
components
ILIAS
Tasks
GlobalScreen
classes
DerivedTaskMainBarProvider.php
Generated on Sun Aug 31 2025 23:03:55 for ILIAS by
1.8.13 (using
Doxyfile
)