ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\MetaData\Paths\NullBuilder Class Reference
+ Inheritance diagram for ILIAS\MetaData\Paths\NullBuilder:
+ Collaboration diagram for ILIAS\MetaData\Paths\NullBuilder:

Public Member Functions

 withRelative (bool $is_relative)
 Relative paths start at some otherwise determined element, absolute paths start at root. More...
 
 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 errors later on. More...
 
 withNextStep (string $name, bool $add_as_first=false)
 Add the next step to the path. More...
 
 withNextStepToSuperElement (bool $add_as_first=false)
 Add going to the super element as the next step to the path. More...
 
 withAdditionalFilterAtCurrentStep (FilterType $type, string ... $values)
 Adds a filter to the current step, restricting what elements are included in it: More...
 
 get ()
 
 withNextStepFromStep (StepInterface $next_step, bool $add_as_first=false)
 

Detailed Description

Definition at line 28 of file NullBuilder.php.

Member Function Documentation

◆ get()

ILIAS\MetaData\Paths\NullBuilder::get ( )

Implements ILIAS\MetaData\Paths\BuilderInterface.

Definition at line 55 of file NullBuilder.php.

55  : PathInterface
56  {
57  return new NullPath();
58  }

◆ withAdditionalFilterAtCurrentStep()

ILIAS\MetaData\Paths\NullBuilder::withAdditionalFilterAtCurrentStep ( FilterType  $type,
string ...  $values 
)

Adds a filter to the current step, restricting what elements are included in it:

  • mdid: Only elements with the corresponding ID.
  • data: Only elements that carry data which matches the filter's value.
  • index: The n-th element, beginning with 0. Non-numeric values are interpreted as referring to the last index. (Note that filters are applied in the order they are added, so the index applies to already filtered elements.)

Multiple values in the same filter are treated as OR, multiple filters at the same step are treated as AND.

Implements ILIAS\MetaData\Paths\BuilderInterface.

Definition at line 50 of file NullBuilder.php.

50  : BuilderInterface
51  {
52  return new NullBuilder();
53  }

◆ withLeadsToExactlyOneElement()

ILIAS\MetaData\Paths\NullBuilder::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 errors later on.

If you set this flag, be sure to set filters correctly. Default is false.

Implements ILIAS\MetaData\Paths\BuilderInterface.

Definition at line 35 of file NullBuilder.php.

35  : BuilderInterface
36  {
37  return new NullBuilder();
38  }

◆ withNextStep()

ILIAS\MetaData\Paths\NullBuilder::withNextStep ( string  $name,
bool  $add_as_first = false 
)

Add the next step to the path.

If add_as_first is set true, the step is added as the first and not the last step.

Implements ILIAS\MetaData\Paths\BuilderInterface.

Definition at line 40 of file NullBuilder.php.

40  : BuilderInterface
41  {
42  return new NullBuilder();
43  }

◆ withNextStepFromStep()

ILIAS\MetaData\Paths\NullBuilder::withNextStepFromStep ( StepInterface  $next_step,
bool  $add_as_first = false 
)

Implements ILIAS\MetaData\Paths\BuilderInterface.

Definition at line 60 of file NullBuilder.php.

60  : BuilderInterface
61  {
62  return new NullBuilder();
63  }

◆ withNextStepToSuperElement()

ILIAS\MetaData\Paths\NullBuilder::withNextStepToSuperElement ( bool  $add_as_first = false)

Add going to the super element as the next step to the path.

If add_to_front is set true, the step is added as the first and not the last step.

Implements ILIAS\MetaData\Paths\BuilderInterface.

Definition at line 45 of file NullBuilder.php.

45  : BuilderInterface
46  {
47  return new NullBuilder();
48  }

◆ withRelative()

ILIAS\MetaData\Paths\NullBuilder::withRelative ( bool  $is_relative)

Relative paths start at some otherwise determined element, absolute paths start at root.

Default is false.

Implements ILIAS\MetaData\Paths\BuilderInterface.

Definition at line 30 of file NullBuilder.php.

30  : BuilderInterface
31  {
32  return new NullBuilder();
33  }

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