ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
|
Public Member Functions | |
__construct (StructureSetInterface $structure) | |
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... | |
withNextStepFromStep (StepInterface $next_step, bool $add_as_first=false) | |
withAdditionalFilterAtCurrentStep (FilterType $type, string ... $values) | |
get () | |
Protected Member Functions | |
validatePathFromRoot (PathInterface $path) | |
withNextStepFromName (string|StepToken $name, bool $add_as_first=false) | |
withCurrentStepSaved () | |
Protected Attributes | |
StructureSetInterface | $structure |
array | $steps = [] |
string StepToken null | $current_step_name = null |
array | $current_step_filters = [] |
bool | $current_add_as_first = false |
bool | $is_relative = false |
bool | $leads_to_one = false |
Definition at line 31 of file Builder.php.
ILIAS\MetaData\Paths\Builder::__construct | ( | StructureSetInterface | $structure | ) |
ILIAS\MetaData\Paths\Builder::get | ( | ) |
Implements ILIAS\MetaData\Paths\BuilderInterface.
Definition at line 126 of file Builder.php.
References $path, ILIAS\MetaData\Paths\Builder\validatePathFromRoot(), and ILIAS\MetaData\Paths\Builder\withCurrentStepSaved().
|
protected |
Definition at line 144 of file Builder.php.
References ILIAS\MetaData\Paths\PathInterface\steps(), ILIAS\MetaData\Paths\Steps\SUPER, and ILIAS\MetaData\Paths\PathInterface\toString().
Referenced by ILIAS\MetaData\Paths\Builder\get().
ILIAS\MetaData\Paths\Builder::withAdditionalFilterAtCurrentStep | ( | FilterType | $type, |
string ... | $values | ||
) |
Implements ILIAS\MetaData\Paths\BuilderInterface.
Definition at line 106 of file Builder.php.
|
protected |
Definition at line 173 of file Builder.php.
References null.
Referenced by ILIAS\MetaData\Paths\Builder\get(), and ILIAS\MetaData\Paths\Builder\withNextStepFromName().
ILIAS\MetaData\Paths\Builder::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 63 of file Builder.php.
References ILIAS\MetaData\Paths\Builder\$leads_to_one.
ILIAS\MetaData\Paths\Builder::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 71 of file Builder.php.
References ILIAS\MetaData\Paths\Builder\withNextStepFromName().
|
protected |
Definition at line 163 of file Builder.php.
References ILIAS\MetaData\Paths\Builder\withCurrentStepSaved().
Referenced by ILIAS\MetaData\Paths\Builder\withNextStep(), ILIAS\MetaData\Paths\Builder\withNextStepFromStep(), and ILIAS\MetaData\Paths\Builder\withNextStepToSuperElement().
ILIAS\MetaData\Paths\Builder::withNextStepFromStep | ( | StepInterface | $next_step, |
bool | $add_as_first = false |
||
) |
Implements ILIAS\MetaData\Paths\BuilderInterface.
Definition at line 89 of file Builder.php.
References ILIAS\MetaData\Paths\Steps\StepInterface\filters(), ILIAS\MetaData\Paths\Steps\StepInterface\name(), and ILIAS\MetaData\Paths\Builder\withNextStepFromName().
ILIAS\MetaData\Paths\Builder::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 81 of file Builder.php.
References ILIAS\MetaData\Paths\Steps\SUPER, and ILIAS\MetaData\Paths\Builder\withNextStepFromName().
ILIAS\MetaData\Paths\Builder::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 56 of file Builder.php.
References ILIAS\MetaData\Paths\Builder\$is_relative.
|
protected |
Definition at line 51 of file Builder.php.
|
protected |
Definition at line 50 of file Builder.php.
Definition at line 45 of file Builder.php.
|
protected |
Definition at line 53 of file Builder.php.
Referenced by ILIAS\MetaData\Paths\Builder\withRelative().
|
protected |
Definition at line 54 of file Builder.php.
Referenced by ILIAS\MetaData\Paths\Builder\withLeadsToExactlyOneElement().
|
protected |
Definition at line 43 of file Builder.php.
|
protected |
Definition at line 33 of file Builder.php.
Referenced by ILIAS\MetaData\Paths\Builder\__construct().