ILIAS
trunk Revision v11.0_alpha-2658-ge2404539063
|
Public Member Functions | |
__construct (StructureSetInterface $structure) | |
fromString (string $string) | |
toElement (BaseElementInterface $to, bool $leads_to_exactly_one=false) | |
Returns absolute path from root to the given element. More... | |
betweenElements (BaseElementInterface $from, BaseElementInterface $to, bool $leads_to_exactly_one=false) | |
Returns relative path between two given elements. More... | |
custom () | |
Protected Member Functions | |
setModesFromString (BuilderInterface $builder, string $string) | |
addStepFromString (BuilderInterface $builder, string $string) | |
addElementAsStep (BuilderInterface $builder, BaseElementInterface $element, bool $leads_to_exactly_one, bool $add_as_first) | |
Protected Attributes | |
StructureSetInterface | $structure |
Definition at line 29 of file Factory.php.
ILIAS\MetaData\Paths\Factory::__construct | ( | StructureSetInterface | $structure | ) |
|
protected |
Definition at line 174 of file Factory.php.
References $id, ILIAS\MetaData\Elements\Base\BaseElementInterface\getDefinition(), ILIAS\MetaData\Elements\Base\BaseElementInterface\getMDID(), if, ILIAS\MetaData\Paths\BuilderInterface\withAdditionalFilterAtCurrentStep(), and ILIAS\MetaData\Paths\BuilderInterface\withNextStep().
Referenced by ILIAS\MetaData\Paths\Factory\betweenElements(), and ILIAS\MetaData\Paths\Factory\toElement().
|
protected |
Definition at line 72 of file Factory.php.
References ILIAS\MetaData\Paths\FILTER_VALUE_SEPARATOR, ILIAS\MetaData\Paths\Steps\SUPER, ILIAS\MetaData\Paths\BuilderInterface\withAdditionalFilterAtCurrentStep(), ILIAS\MetaData\Paths\BuilderInterface\withNextStep(), and ILIAS\MetaData\Paths\BuilderInterface\withNextStepToSuperElement().
Referenced by ILIAS\MetaData\Paths\Factory\fromString().
ILIAS\MetaData\Paths\Factory::betweenElements | ( | BaseElementInterface | $from, |
BaseElementInterface | $to, | ||
bool | $leads_to_exactly_one = false |
||
) |
Returns relative path between two given elements.
If leads_to_exactly one is set true, it tries to add mdid filters where possible such that the path only leads to that specific element and not also others of the same type and position.
Implements ILIAS\MetaData\Paths\FactoryInterface.
Definition at line 132 of file Factory.php.
References ILIAS\MetaData\Paths\Factory\addElementAsStep(), and ILIAS\MetaData\Elements\Base\BaseElementInterface\getSuperElement().
ILIAS\MetaData\Paths\Factory::custom | ( | ) |
Implements ILIAS\MetaData\Paths\FactoryInterface.
Definition at line 200 of file Factory.php.
Referenced by ILIAS\MetaData\Paths\Factory\fromString().
ILIAS\MetaData\Paths\Factory::fromString | ( | string | $string | ) |
Implements ILIAS\MetaData\Paths\FactoryInterface.
Definition at line 38 of file Factory.php.
References ILIAS\MetaData\Paths\Factory\addStepFromString(), ILIAS\MetaData\Paths\Factory\custom(), and ILIAS\MetaData\Paths\Factory\setModesFromString().
|
protected |
Definition at line 49 of file Factory.php.
References ILIAS\MetaData\Paths\BuilderInterface\withLeadsToExactlyOneElement(), and ILIAS\MetaData\Paths\BuilderInterface\withRelative().
Referenced by ILIAS\MetaData\Paths\Factory\fromString().
ILIAS\MetaData\Paths\Factory::toElement | ( | BaseElementInterface | $to, |
bool | $leads_to_exactly_one = false |
||
) |
Returns absolute path from root to the given element.
If leads_to_exactly one is set true, it will add mdid filters where possible such that the path only leads to that specific element and not also others of the same type and position.
Implements ILIAS\MetaData\Paths\FactoryInterface.
Definition at line 105 of file Factory.php.
References ILIAS\MetaData\Paths\Factory\addElementAsStep(), ILIAS\MetaData\Elements\Base\BaseElementInterface\getSuperElement(), and ILIAS\MetaData\Elements\Base\BaseElementInterface\isRoot().
|
protected |
Definition at line 31 of file Factory.php.
Referenced by ILIAS\MetaData\Paths\Factory\__construct().