ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Tool.php
Go to the documentation of this file.
2
8
15{
16
20 protected $icon;
24 protected $content;
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 {
64 }
65
66
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}
An exception for terminatinating execution or to throw for unit testing.
withContent(Component $ui_component)
@inheritDoc
Definition: Tool.php:82
withAsyncContentURL(string $async_content_url)
@inheritDoc
Definition: Tool.php:70
A component is the most general form of an entity in the UI.
Definition: Component.php:14