ILIAS  release_7 Revision v7.30-3-g800a261c036
ToolFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
23
30{
37 public function tool(IdentificationInterface $identification) : Tool
38 {
39 return new Tool($identification);
40 }
41
46 public function treeTool(IdentificationInterface $identification) : TreeTool
47 {
48 return new TreeTool($identification);
49 }
50}
An exception for terminatinating execution or to throw for unit testing.
Class ToolFactory This factory provides you all available types for MainMenu GlobalScreen Tools.
Definition: ToolFactory.php:30
tool(IdentificationInterface $identification)
Returns you a Tool which can contain special features in s context.
Definition: ToolFactory.php:37
treeTool(IdentificationInterface $identification)
Definition: ToolFactory.php:46