ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
NullHandler.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 
29 class NullHandler implements HandlerInterface
30 {
31  public function pathForSlot(Identifier $identifier): PathInterface
32  {
33  return new NullPath();
34  }
35 
36  public function isSlotConditional(Identifier $identifier): bool
37  {
38  return false;
39  }
40 
41  public function conditionForSlot(Identifier $identifier): ?ConditionInterface
42  {
43  return null;
44  }
45 
47  PathInterface $path_to_element,
48  ?PathInterface $path_to_condition,
49  ?string $condition_value
50  ): Identifier {
51  return Identifier::NULL;
52  }
53 
54  public function allSlotsForPath(PathInterface $path_to_element): \Generator
55  {
56  yield from [];
57  }
58 
59  public function doesSlotExist(
60  PathInterface $path_to_element,
61  ?PathInterface $path_to_condition,
62  ?string $condition_value
63  ): bool {
64  return false;
65  }
66 
67  public function dataTypeForSlot(Identifier $identifier): DataType
68  {
69  return DataType::NULL;
70  }
71 }
doesSlotExist(PathInterface $path_to_element, ?PathInterface $path_to_condition, ?string $condition_value)
Definition: NullHandler.php:59
identiferFromPathAndCondition(PathInterface $path_to_element, ?PathInterface $path_to_condition, ?string $condition_value)
Definition: NullHandler.php:46
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
allSlotsForPath(PathInterface $path_to_element)
Definition: NullHandler.php:54