ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Services.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23use ILIAS\MetaData\Search\Clauses\FactoryInterface as ClauseFactoryInterface;
24use ILIAS\MetaData\Search\Filters\FactoryInterface as FilterFactoryInterface;
25use ILIAS\MetaData\Search\Clauses\Factory as ClauseFactory;
26use ILIAS\MetaData\Search\Filters\Factory as FilterFactory;
27
29{
30 protected ClauseFactoryInterface $search_clause_factory;
31 protected FilterFactoryInterface $search_filter_factory;
32
33 public function searchClauseFactory(): ClauseFactoryInterface
34 {
35 if (isset($this->search_clause_factory)) {
37 }
38 return $this->search_clause_factory = new ClauseFactory();
39 }
40
41 public function searchFilterFactory(): FilterFactoryInterface
42 {
43 if (isset($this->search_filter_factory)) {
45 }
46 return $this->search_filter_factory = new FilterFactory();
47 }
48}
FilterFactoryInterface $search_filter_factory
Definition: Services.php:31
ClauseFactoryInterface $search_clause_factory
Definition: Services.php:30