ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\MetaData\Services\Paths\Builder Class Reference
+ Inheritance diagram for ILIAS\MetaData\Services\Paths\Builder:
+ Collaboration diagram for ILIAS\MetaData\Services\Paths\Builder:

Public Member Functions

 __construct (InternalBuilderInterface $internal_builder)
 
 withNextStep (string $name)
 
 withNextStepToSuperElement ()
 
 withAdditionalFilterAtCurrentStep (FilterType $type, string ... $values)
 
 get ()
 

Protected Attributes

InternalBuilderInterface $internal_builder
 

Detailed Description

Definition at line 27 of file Builder.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MetaData\Services\Paths\Builder::__construct ( InternalBuilderInterface  $internal_builder)

Definition at line 31 of file Builder.php.

32 {
33 $internal_builder->withRelative(false)
34 ->withLeadsToExactlyOneElement(false);
35 $this->internal_builder = $internal_builder;
36 }
InternalBuilderInterface $internal_builder
Definition: Builder.php:29

References ILIAS\MetaData\Services\Paths\Builder\$internal_builder.

Member Function Documentation

◆ get()

ILIAS\MetaData\Services\Paths\Builder::get ( )
Exceptions

ilMDServicesException

Implements ILIAS\MetaData\Paths\BuilderInterface.

Definition at line 75 of file Builder.php.

75 : PathInterface
76 {
77 try {
78 return $this->internal_builder->get();
79 } catch (\ilMDPathException $e) {
80 throw new \ilMDServicesException($e->getMessage());
81 }
82
83 }

References Vendor\Package\$e.

◆ withAdditionalFilterAtCurrentStep()

ILIAS\MetaData\Services\Paths\Builder::withAdditionalFilterAtCurrentStep ( FilterType  $type,
string ...  $values 
)
Exceptions

ilMDServicesException

Implements ILIAS\MetaData\Paths\BuilderInterface.

Definition at line 55 of file Builder.php.

58 : BuilderInterface {
59 $clone = clone $this;
60 try {
61 $clone->internal_builder = $clone->internal_builder->withAdditionalFilterAtCurrentStep(
62 $type,
63 ...$values
64 );
65 } catch (\ilMDPathException $e) {
66 throw new \ilMDServicesException($e->getMessage());
67 }
68
69 return $clone;
70 }

References ILIAS\MetaData\Paths\BuilderInterface\withAdditionalFilterAtCurrentStep().

+ Here is the call graph for this function:

◆ withNextStep()

ILIAS\MetaData\Services\Paths\Builder::withNextStep ( string  $name)

Definition at line 38 of file Builder.php.

38 : BuilderInterface
39 {
40 $clone = clone $this;
41 $clone->internal_builder = $clone->internal_builder->withNextStep($name);
42 return $clone;
43 }

References ILIAS\MetaData\Paths\BuilderInterface\withNextStep().

+ Here is the call graph for this function:

◆ withNextStepToSuperElement()

ILIAS\MetaData\Services\Paths\Builder::withNextStepToSuperElement ( )

Definition at line 45 of file Builder.php.

45 : BuilderInterface
46 {
47 $clone = clone $this;
48 $clone->internal_builder = $clone->internal_builder->withNextStepToSuperElement();
49 return $clone;
50 }

References ILIAS\MetaData\Paths\BuilderInterface\withNextStepToSuperElement().

+ Here is the call graph for this function:

Field Documentation

◆ $internal_builder

InternalBuilderInterface ILIAS\MetaData\Services\Paths\Builder::$internal_builder
protected

Definition at line 29 of file Builder.php.

Referenced by ILIAS\MetaData\Services\Paths\Builder\__construct().


The documentation for this class was generated from the following file: