ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
TableNamesHandler.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
31 
33 {
34  protected function checkTable(string $table): void
35  {
36  if (
37  is_null($this->table($table)) ||
38  is_null($this->IDName($table))
39  ) {
40  throw new \ilMDRepositoryException('Invalid MD table: ' . $table);
41  }
42  }
43 
44  protected function table(string $table): ?string
45  {
46  return LOMDictionaryInitiator::TABLES[$table] ?? null;
47  }
48 
49  protected function IDName(string $table): ?string
50  {
51  return LOMDictionaryInitiator::ID_NAME[$table] ?? null;
52  }
53 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null