ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilADTSearchBridgeMulti.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
25 {
26  protected function setDefinition(ilADTDefinition $a_adt_def): void
27  {
28  if ($this->isValidADTDefinition($a_adt_def)) {
29  $def = $this->convertADTDefinitionToMulti($a_adt_def);
30  $this->adt = ilADTFactory::getInstance()->getInstanceByDefinition($def);
31  return;
32  }
33  throw new InvalidArgumentException('ilADTSearchBridge type mismatch.');
34  }
35 
36  abstract protected function convertADTDefinitionToMulti(ilADTDefinition $a_adt_def): ilADTDefinition;
37 }
isValidADTDefinition(ilADTDefinition $a_adt_def)
Class ilADTSearchBridgeSingle.
setDefinition(ilADTDefinition $a_adt_def)
convertADTDefinitionToMulti(ilADTDefinition $a_adt_def)
Class ilADTSearchBridgeMulti.
ADT definition base class.