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

Public Member Functions

 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 ()
 

Detailed Description

Definition at line 25 of file NullFactory.php.

Member Function Documentation

◆ betweenElements()

ILIAS\MetaData\Paths\NullFactory::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 37 of file NullFactory.php.

37  : PathInterface
38  {
39  return new NullPath();
40  }

◆ custom()

ILIAS\MetaData\Paths\NullFactory::custom ( )

Implements ILIAS\MetaData\Paths\FactoryInterface.

Definition at line 42 of file NullFactory.php.

42  : BuilderInterface
43  {
44  return new NullBuilder();
45  }

◆ fromString()

ILIAS\MetaData\Paths\NullFactory::fromString ( string  $string)

Implements ILIAS\MetaData\Paths\FactoryInterface.

Definition at line 27 of file NullFactory.php.

27  : PathInterface
28  {
29  return new NullPath();
30  }

◆ toElement()

ILIAS\MetaData\Paths\NullFactory::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 32 of file NullFactory.php.

32  : PathInterface
33  {
34  return new NullPath();
35  }

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