ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
SearcherInterface.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 
30 {
34  public function getClauseFactory(): FactoryInterface;
35 
45  public function getFilter(
46  int|Placeholder $obj_id = Placeholder::ANY,
47  int|Placeholder $sub_id = Placeholder::ANY,
48  string|Placeholder $type = Placeholder::ANY
49  ): FilterInterface;
50 
57  public function execute(
58  ClauseInterface $clause,
59  ?int $limit,
60  ?int $offset,
61  FilterInterface ...$filters
62  ): \Generator;
63 }
getFilter(int|Placeholder $obj_id=Placeholder::ANY, int|Placeholder $sub_id=Placeholder::ANY, string|Placeholder $type=Placeholder::ANY)
Get a filter with which the results of a search can be restricted.
getClauseFactory()
Get a factory where you can assemble your search clause.
execute(ClauseInterface $clause, ?int $limit, ?int $offset, FilterInterface ... $filters)
Results are always ordered first by obj_id, then sub_id, then type.