ILIAS  trunk Revision v11.0_alpha-1838-g59fc79e306b
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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.

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

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

Member Function Documentation

◆ get()

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

Implements ILIAS\MetaData\Paths\BuilderInterface.

Definition at line 75 of file Builder.php.

References Vendor\Package\$e.

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

◆ withAdditionalFilterAtCurrentStep()

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

Implements ILIAS\MetaData\Paths\BuilderInterface.

Definition at line 55 of file Builder.php.

References Vendor\Package\$e, and ILIAS\MetaData\Paths\BuilderInterface\withAdditionalFilterAtCurrentStep().

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  }
+ 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.

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

38  : BuilderInterface
39  {
40  $clone = clone $this;
41  $clone->internal_builder = $clone->internal_builder->withNextStep($name);
42  return $clone;
43  }
+ Here is the call graph for this function:

◆ withNextStepToSuperElement()

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

Definition at line 45 of file Builder.php.

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

45  : BuilderInterface
46  {
47  $clone = clone $this;
48  $clone->internal_builder = $clone->internal_builder->withNextStepToSuperElement();
49  return $clone;
50  }
+ 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: