19 declare(strict_types=1);
45 protected function buildPathFromSteps(array $steps,
bool $is_relative,
bool $leads_to_exactly_one):
PathInterface 47 return $this->path_conditions_collection_test->getMockPath($steps, $is_relative, $leads_to_exactly_one);
54 return new class ($name) extends
NullStep {
72 bool $leads_exactly_to_one
74 return new class ($steps, $is_relative, $leads_exactly_to_one) extends
NullPath {
79 protected array $steps,
80 protected bool $is_relative,
81 protected bool $leads_exactly_to_one
85 public function isRelative():
bool 87 return $this->is_relative;
90 public function leadsToExactlyOneElement():
bool 92 return $this->leads_exactly_to_one;
95 public function steps(): \Generator
97 yield
from $this->steps;
103 foreach ($this->steps as $step) {
104 $step_string .=
'/' . ($step->name() instanceof
StepToken ? $step->name()->value : $step->name());
123 '/general/keyword/string',
124 $path_conditions->getPathWithoutConditions()->toString(),
128 $path_conditions->getConditionPathByStepName(
'general')->toString(),
132 $path_conditions->getConditionPathByStepName(
'keyword')->toString(),
136 $path_conditions->getConditionPathByStepName(
'string')->toString(),
140 $path_conditions->getConditionPathByStepName(
'not_a_step')->toString(),
153 $path_conditions->getPathWithoutConditions()->toString(),
157 $path_conditions->getConditionPathByStepName(
'not_a_step')->toString(),
177 '/start/step_1/target',
178 $path_conditions->getPathWithoutConditions()->toString(),
182 $path_conditions->getConditionPathByStepName(
'start')->toString(),
185 '/condition/nested_condition/^/^',
186 $path_conditions->getConditionPathByStepName(
'step_1')->toString(),
190 $path_conditions->getConditionPathByStepName(
'target')->toString(),
194 $path_conditions->getConditionPathByStepName(
'not_a_step')->toString(),
216 '/start/step_1/target',
217 $path_conditions->getPathWithoutConditions()->toString(),
221 $path_conditions->getConditionPathByStepName(
'start')->toString(),
224 '/condition/nested_condition/nested_nested_condition/^/^/^',
225 $path_conditions->getConditionPathByStepName(
'step_1')->toString(),
229 $path_conditions->getConditionPathByStepName(
'target')->toString(),
233 $path_conditions->getConditionPathByStepName(
'not_a_step')->toString(),
251 '/start/step_1/target',
252 $path_conditions->getPathWithoutConditions()->toString(),
256 $path_conditions->getConditionPathByStepName(
'start')->toString(),
260 $path_conditions->getConditionPathByStepName(
'step_1')->toString(),
264 $path_conditions->getConditionPathByStepName(
'target')->toString(),
268 $path_conditions->getConditionPathByStepName(
'not_a_step')->toString(),
291 '/start/step_1/step_2/target',
292 $path_conditions->getPathWithoutConditions()->toString(),
296 $path_conditions->getConditionPathByStepName(
'start')->toString(),
300 $path_conditions->getConditionPathByStepName(
'step_1')->toString(),
303 '/condition_2/^/condition_3/^',
304 $path_conditions->getConditionPathByStepName(
'step_2')->toString(),
308 $path_conditions->getConditionPathByStepName(
'target')->toString(),
312 $path_conditions->getConditionPathByStepName(
'not_a_step')->toString(),
343 '/start/step_1/step_2/target',
344 $path_conditions->getPathWithoutConditions()->toString(),
347 '/condition_1/nested_condition_1/^/^',
348 $path_conditions->getConditionPathByStepName(
'start')->toString(),
352 $path_conditions->getConditionPathByStepName(
'step_1')->toString(),
355 '/condition_3/^/condition_4/nested_condition_4/nested_nested_condition_4/^/^/^',
356 $path_conditions->getConditionPathByStepName(
'step_2')->toString(),
360 $path_conditions->getConditionPathByStepName(
'target')->toString(),
364 $path_conditions->getConditionPathByStepName(
'not_a_step')->toString(),
399 '/start/step_1/step_2/target',
400 $path_conditions->getPathWithoutConditions()->toString(),
403 '/condition_1/nested_condition_1/^/^',
404 $path_conditions->getConditionPathByStepName(
'start')->toString(),
408 $path_conditions->getConditionPathByStepName(
'step_1')->toString(),
411 '/condition_3/^/condition_4/nested_condition_4/nested_nested_condition_4/^/^/^',
412 $path_conditions->getConditionPathByStepName(
'step_2')->toString(),
415 '/condition_5/nested_condition_5/^/^',
416 $path_conditions->getConditionPathByStepName(
'target')->toString(),
420 $path_conditions->getConditionPathByStepName(
'not_a_step')->toString(),
__construct()
Constructor setup ILIAS global object public.
__construct(Container $dic, ilPlugin $plugin)