ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilTestReindexedSequencePositionMap.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
27 {
29  private array $sequencePositionMap = [];
30 
31  public function addPositionMapping(int $oldSequencePosition, int $newSequencePosition): void
32  {
33  $this->sequencePositionMap[$oldSequencePosition] = $newSequencePosition;
34  }
35 
36  public function getNewSequencePosition(int $oldSequencePosition): ?int
37  {
38  return $this->sequencePositionMap[$oldSequencePosition] ?? null;
39  }
40 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
addPositionMapping(int $oldSequencePosition, int $newSequencePosition)