ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
Search.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS;
22
24use ILIAS\Refinery\Factory as RefineryFactory;
25use ILIAS\Search\Setup\Agent as SearchSetupAgent;
28
30{
31 public function init(
32 array | \ArrayAccess &$define,
33 array | \ArrayAccess &$implement,
34 array | \ArrayAccess &$use,
35 array | \ArrayAccess &$contribute,
36 array | \ArrayAccess &$seek,
37 array | \ArrayAccess &$provide,
38 array | \ArrayAccess &$pull,
39 array | \ArrayAccess &$internal,
40 ): void {
41 $contribute[Component\Resource\PublicAsset::class] = fn() =>
42 new Component\Resource\ComponentJS($this, "SearchMainMenu.js");
43 $contribute[Component\Resource\PublicAsset::class] = fn() =>
44 new Component\Resource\ComponentJS($this, "Search.js");
45 $contribute[SetupAgent::class] = fn() => new SearchSetupAgent($pull[RefineryFactory::class]);
46 $contribute[LanguageFileDirectory::class] = fn() => new ComponentLanguageFileDirectory(
47 $this,
48 'search'
49 );
50 }
51}
This is a js file provided by some component.
Definition: ComponentJS.php:27
Builds data types.
Definition: Factory.php:36
init(array|\ArrayAccess &$define, array|\ArrayAccess &$implement, array|\ArrayAccess &$use, array|\ArrayAccess &$contribute, array|\ArrayAccess &$seek, array|\ArrayAccess &$provide, array|\ArrayAccess &$pull, array|\ArrayAccess &$internal,)
Definition: Search.php:31
An public asset is a file or folder that should be served via the web.
Definition: PublicAsset.php:27
A directory of language files with a path and a prefix for them.
A component is the most general form of an entity in the UI.
Definition: Component.php:28
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.