ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Tool.php
Go to the documentation of this file.
1
<?
php
namespace
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Tool
;
2
3
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractParentItem
;
4
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasAsyncContent
;
5
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasContent
;
6
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isTopItem
;
7
use
ILIAS\UI\Component\Component
;
8
14
class
Tool
extends
AbstractParentItem
implements
isTopItem
,
hasContent
,
hasAsyncContent
15
{
16
20
protected
$icon
;
24
protected
$content
;
28
protected
$async_content_url
;
32
protected
$title
;
33
34
40
public
function
withTitle
(
string
$title
) :
Tool
41
{
42
$clone = clone($this);
43
$clone->title =
$title
;
44
45
return
$clone;
46
}
47
48
52
public
function
getTitle
() : string
53
{
54
return
$this->title
;
55
}
56
57
61
public
function
getAsyncContentURL
() : string
62
{
63
return
$this->async_content_url
;
64
}
65
66
70
public
function
withAsyncContentURL
(
string
$async_content_url
) :
hasAsyncContent
71
{
72
$clone = clone($this);
73
$clone->async_content_url =
$async_content_url
;
74
75
return
$clone;
76
}
77
78
82
public
function
withContent
(
Component
$ui_component) :
hasContent
83
{
84
$clone = clone($this);
85
$clone->content = $ui_component;
86
87
return
$clone;
88
}
89
90
94
public
function
getContent
() :
Component
95
{
96
return
$this->content
;
97
}
98
}
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Tool\Tool\getContent
getContent()
Definition:
Tool.php:94
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Tool\Tool\withTitle
withTitle(string $title)
Definition:
Tool.php:40
AbstractParentItem
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Tool\Tool\$async_content_url
$async_content_url
Definition:
Tool.php:28
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Tool\Tool\withAsyncContentURL
withAsyncContentURL(string $async_content_url)
Definition:
Tool.php:70
isTopItem
ILIAS\UI\Component
Component
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Tool\Tool\withContent
withContent(Component $ui_component)
Definition:
Tool.php:82
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Tool\Tool
Class Tool.
Definition:
Tool.php:14
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Tool\Tool\$content
$content
Definition:
Tool.php:24
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Tool\Tool\$icon
$icon
Definition:
Tool.php:20
hasAsyncContent
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isTopItem
Interface TopIs.
Definition:
isTopItem.php:8
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasAsyncContent
Interface hasAsyncContent.
Definition:
hasAsyncContent.php:8
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractParentItem
Class AbstractParentItem.
Definition:
AbstractParentItem.php:8
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Tool\Tool\getTitle
getTitle()
Definition:
Tool.php:52
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasContent
Interface hasContent.
Definition:
hasContent.php:10
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Tool\Tool\$title
$title
Definition:
Tool.php:32
hasContent
php
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Tool
Definition:
Tool.php:1
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Tool\Tool\getAsyncContentURL
getAsyncContentURL()
Definition:
Tool.php:61
src
GlobalScreen
Scope
MainMenu
Factory
Tool
Tool.php
Generated on Thu Jan 30 2025 19:02:11 for ILIAS by
1.8.13 (using
Doxyfile
)