ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilADTSearchBridgeMulti.php
Go to the documentation of this file.
1 <?php
2 
3 require_once "Services/ADT/classes/Bridges/class.ilADTSearchBridgeSingle.php";
4 
6 {
7  protected function setDefinition(ilADTDefinition $a_adt_def)
8  {
9  if($this->isValidADTDefinition($a_adt_def))
10  {
11  $def = $this->convertADTDefinitionToMulti($a_adt_def);
12  $this->adt = ilADTFactory::getInstance()->getInstanceByDefinition($def);
13  return;
14  }
15 
16  throw new Exception('ilADTSearchBridge type mismatch.');
17  }
18 
24  abstract protected function convertADTDefinitionToMulti(ilADTDefinition $a_adt_def);
25 }
26 
27 ?>