ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 ?>
isValidADTDefinition(ilADTDefinition $a_adt_def)
Check if given ADT definition is valid.
static getInstance()
Get singleton.
setDefinition(ilADTDefinition $a_adt_def)
convertADTDefinitionToMulti(ilADTDefinition $a_adt_def)
Convert definition to multi version.
ADT definition base class.