ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
BuilderInterface.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\MetaData\Paths;
22 
27 
29 {
34  public function withRelative(bool $is_relative): BuilderInterface;
35 
42  public function withLeadsToExactlyOneElement(
43  bool $leads_to_one
45 
50  public function withNextStep(
51  string $name,
52  bool $add_as_first = false
54 
60  public function withNextStepToSuperElement(
61  bool $add_as_first = false
63 
78  public function withAdditionalFilterAtCurrentStep(
79  FilterType $type,
80  string ...$values
82 
83  public function get(): PathInterface;
84 
85  public function withNextStepFromStep(
86  StepInterface $next_step,
87  bool $add_as_first = false
89 }
FilterType
Values should always be all lowercase.
Definition: FilterType.php:26
withNextStep(string $name, bool $add_as_first=false)
Add the next step to the path.
withAdditionalFilterAtCurrentStep(FilterType $type, string ... $values)
Adds a filter to the current step, restricting what elements are included in it:
StepToken
The string representation of these tokens must not occur as names of metadata elements.
Definition: StepToken.php:27
withNextStepFromStep(StepInterface $next_step, bool $add_as_first=false)
withLeadsToExactlyOneElement(bool $leads_to_one)
Building a path that is flagged to lead to exactly one element, but does not actually do so can throw...
withNextStepToSuperElement(bool $add_as_first=false)
Add going to the super element as the next step to the path.
withRelative(bool $is_relative)
Relative paths start at some otherwise determined element, absolute paths start at root...