ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilADTSearchBridgeMulti.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
9 {
10  protected function setDefinition(ilADTDefinition $a_adt_def): void
11  {
12  if ($this->isValidADTDefinition($a_adt_def)) {
13  $def = $this->convertADTDefinitionToMulti($a_adt_def);
14  $this->adt = ilADTFactory::getInstance()->getInstanceByDefinition($def);
15  return;
16  }
17  throw new InvalidArgumentException('ilADTSearchBridge type mismatch.');
18  }
19 
20  abstract protected function convertADTDefinitionToMulti(ilADTDefinition $a_adt_def): ilADTDefinition;
21 }
isValidADTDefinition(ilADTDefinition $a_adt_def)
Class ilADTSearchBridgeSingle.
setDefinition(ilADTDefinition $a_adt_def)
convertADTDefinitionToMulti(ilADTDefinition $a_adt_def)
Class ilADTSearchBridgeMulti.
ADT definition base class.